Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2697921
)
ide/FindInFilesDialog: Fixed memory corruption
author
Jerome St-Louis
<jerome@ecere.com>
Thu, 7 Aug 2014 16:35:54 +0000
(12:35 -0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Thu, 7 Aug 2014 16:36:50 +0000
(12:36 -0400)
- Out of bounds array write
- Made IDE very unstable on OS X as soon as finding in files
ide/src/dialogs/FindInFilesDialog.ec
patch
|
blob
|
history
diff --git
a/ide/src/dialogs/FindInFilesDialog.ec
b/ide/src/dialogs/FindInFilesDialog.ec
index
eb1e2b7
..
1191717
100644
(file)
--- a/
ide/src/dialogs/FindInFilesDialog.ec
+++ b/
ide/src/dialogs/FindInFilesDialog.ec
@@
-1021,8
+1021,8
@@
private:
}
if(inLineFindCount && !abortNow)
{
- char s1[
6
] = " ";
- char s2[
4
] = " ";
+ char s1[
7
] = " ";
+ char s2[
5
] = " ";
int len = strlen(line);
s1[6 - HowManyDigits(lineNum)] = '\0';
s2[4 - HowManyDigits(col)] = '\0';