wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wget2 | Fixed data corruption bugs in transfer encoding chunked code


From: Michael Roosz
Subject: Re: wget2 | Fixed data corruption bugs in transfer encoding chunked code (!480)
Date: Sun, 24 Jan 2021 12:56:21 +0000



Michael Roosz commented on a discussion on libwget/http.c: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/480#note_492575566

>       }
>       if (!nread) goto cleanup;
>  
> +     if (!p) goto cleanup;

What happens if the tcp data does not contain any "\r\n\r\n" at all? From what 
I understand we will have nread > 0 but also p == null because of `if ((p = 
strstr(p, "\r\n\r\n"))) {`

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/480#note_492575566
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]