unsigned integer overflow
$ wget2 -i urls.txt
...
../../libwget/cookie.c:221:38: runtime error: unsigned integer overflow: 0 - 1 cannot be represented in type 'unsigned long'
...
When cookie_path_length
is 0, cookie_path[cookie_path_length - 1] == '/'
might lead to illegal memory access.
Edited by Avinash Sonawane