Attention: All pages of this wiki depend on the pages that come before it, in order as they are listed on the Main Page. Please check for Dependencies.
Please also look at What You Need to Know Before Using This Wiki
/usr/src/simscan.badext.patch
Creditation
simscan.badext.patch
--- simscan-1.4.0/simscan.c 2011-02-08 16:00:43.579074836 -0200 +++ simscan-1.4.0-fixed/simscan.c 2011-02-08 16:04:24.931075207 -0200 <at> <at> -1735,10 +1735,14 <at> <at> for(i=0;i<MaxAttach;++i) { if ( DebugFlag > 2 ) fprintf(stderr, "simscan: checking attachment %s against %s\n", mydirent->d_name, bk_attachments[i] ); lowerit(mydirent->d_name); - if ( str_rstr(mydirent->d_name,bk_attachments[i]) == 0 ) { - strncpy(AttachName, mydirent->d_name, sizeof(AttachName)-1); - closedir(mydir); - return(1); + if ( strlen(mydirent->d_name) >= strlen(bk_attachments[i]) ) { + if ( str_rstr(mydirent->d_name,bk_attachments[i]) == 0 ) { + strncpy(AttachName, mydirent->d_name, sizeof(AttachName)-1); + closedir(mydir); + return(1); + } + } else { + if ( DebugFlag > 2 ) fprintf(stderr, "simscan: attachment name '%s' (%d) is shorter than '%s' (%d). IGNORED\n", mydirent->d_name, strlen( mydirent->d_name ), bk_attachments[i], strlen( bk_attachments[i] ) ); } } }