Open saurabhuja opened 2 years ago
Refer https://vulncat.fortify.com/en/detail?id=desc.internal.cpp.buffer_overflow_off_by_one
Code Snippet:
line[0] = '\n'; while (fgets(line+1, buffer_size, fp_find)) { if (strstr(list_target, line) == NULL)
This code is susceptible to buffer overflow as reflected in above wiki. Can you please provide solution for same? Recommendations: https://stackoverflow.com/questions/574159/what-is-a-buffer-overflow-and-how-do-i-cause-one
Refer https://vulncat.fortify.com/en/detail?id=desc.internal.cpp.buffer_overflow_off_by_one
Code Snippet:
This code is susceptible to buffer overflow as reflected in above wiki. Can you please provide solution for same? Recommendations: https://stackoverflow.com/questions/574159/what-is-a-buffer-overflow-and-how-do-i-cause-one