"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "input.c" between
honggfuzz-2.4.tar.gz and honggfuzz-2.5.tar.gz

About: honggfuzz is a security oriented, feedback-driven, evolutionary, easy-to-use fuzzer with powerful analysis options.

input.c  (honggfuzz-2.4):input.c  (honggfuzz-2.5)
skipping to change at line 147 skipping to change at line 147
continue; continue;
} }
if (entry == NULL && errno != 0) { if (entry == NULL && errno != 0) {
PLOG_W("readdir_r('%s')", run->global->io.inputDir); PLOG_W("readdir_r('%s')", run->global->io.inputDir);
return false; return false;
} }
if (entry == NULL && !rewind) { if (entry == NULL && !rewind) {
return false; return false;
} }
if (entry == NULL && rewind) { if (entry == NULL && rewind) {
if (!input_getDirStatsAndRewind(run->global)) { rewinddir(run->global->io.inputDirPtr);
LOG_E("input_getDirStatsAndRewind('%s')", run->global->io.inputD
ir);
return false;
}
continue; continue;
} }
char path[PATH_MAX]; char path[PATH_MAX];
snprintf(path, PATH_MAX, "%s/%s", run->global->io.inputDir, entry->d_nam e); snprintf(path, PATH_MAX, "%s/%s", run->global->io.inputDir, entry->d_nam e);
struct stat st; struct stat st;
if (stat(path, &st) == -1) { if (stat(path, &st) == -1) {
LOG_W("Couldn't stat() the '%s' file", path); LOG_W("Couldn't stat() the '%s' file", path);
continue; continue;
} }
if (!S_ISREG(st.st_mode)) { if (!S_ISREG(st.st_mode)) {
 End of changes. 1 change blocks. 
5 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)