You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function "locateFileStart" is writing beyond the end of the array
"cookedName". In both "for loops" the test should be "i < 11" instead of
"i < 12".
See below:
char cookedName[11];
for(int i = 0; i < 12; ++i) {
cookedName[i] = 0x20;
}
for (int i = 0, j = 0; i < 12 && filename[i]; ++i) {
if (filename[i] != '.') {
cookedName[j] = filename[i] >= 96 ? filename[i] - 32 : filename[i];
++j;
} else {
j = 8;
}
}
Original issue reported on code.google.com by ott.ra...@gmail.com on 20 Jul 2009 at 4:23
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
ott.ra...@gmail.com
on 20 Jul 2009 at 4:23The text was updated successfully, but these errors were encountered: