ide/FindInFilesDialog: Fixed memory corruption
authorJerome St-Louis <jerome@ecere.com>
Thu, 7 Aug 2014 16:35:54 +0000 (12:35 -0400)
committerJerome 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

index eb1e2b7..1191717 100644 (file)
@@ -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';