Bugzilla – Bug 151484
mdbtools-0.5-244: array subscript out of range
Last modified: 2006-02-16 16:29:06 UTC
I just tried to compile package mdbtools-0.5-244 with a non standard version of the GNU C compiler. It said file.c:102: warning: array subscript out of range The source code is gchar basename[33]; int i; for (i=strlen(file_path);i>=0 && file_path[i]!='/';i--); if (file_path[i]=='/') { strncpy(basename,&file_path[i+1],32); } else { strncpy(basename,file_path,32); } basename[33]='\0'; Clearly broken code. Suggest make array one bigger.
Fixed for 10.1 beta4. Thanks for reporting!