|
|
|
|
|
by x0
2338 days ago
|
|
if you can be bothered, rebuild it with debug symbols, run it, dump core and try and find exactly where the bug is. I vaguely remember doing this with wget, there was a way to make it think the terminal's width is (unsigned)-4, then when printing the download status to stdout, it clears a buffer with a memset(ptr, ' ', -4). Of course -4 in this context is a huge number. It overwrote its whole self until segfault. (this issue was fixed, btw) great learning experience, for anyone who knows enough C to understand what they're looking at. |
|