[Ttssh2-commit] [8378] URL強調時にバッファオーバーランが発生していたので修正

アーカイブの一覧に戻る
scmno****@osdn***** scmno****@osdn*****
2019年 11月 21日 (木) 00:52:53 JST


Revision: 8378
          https://osdn.net/projects/ttssh2/scm/svn/commits/8378
Author:   zmatsuo
Date:     2019-11-21 00:52:53 +0900 (Thu, 21 Nov 2019)
Log Message:
-----------
URL強調時にバッファオーバーランが発生していたので修正

Modified Paths:
--------------
    branches/unicode_buf/teraterm/teraterm/buffer.c

-------------- next part --------------
Modified: branches/unicode_buf/teraterm/teraterm/buffer.c
===================================================================
--- branches/unicode_buf/teraterm/teraterm/buffer.c	2019-11-20 15:52:43 UTC (rev 8377)
+++ branches/unicode_buf/teraterm/teraterm/buffer.c	2019-11-20 15:52:53 UTC (rev 8378)
@@ -2943,8 +2943,8 @@
 	}
 
 	// \x83}\x83b\x83`\x82\xB5\x82\xBD
-	*sx_match_s = match_x - PageStart;
-	*sy_match_s = match_y;
+	*sx_match_s = match_x;
+	*sy_match_s = match_y - PageStart;
 	rx = match_x;
 	for (y = match_y; y <= PageStart + sy_e; y++) {
 		int sx_s_i = 0;
@@ -3048,7 +3048,6 @@
 			}
 			else {
 				BuffDrawLineI(-1, -1, sy_match_s, sx_match_s, sx_match_e);
-				BuffDrawLineI(-1, -1, sy_match_s, sx_match_s, sx_match_e);
 			}
 			sx_i = sx_match_e;
 			sy_i = sy_match_e;


Ttssh2-commit メーリングリストの案内
アーカイブの一覧に戻る