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: Tim Rühsen
Subject: Re: wget2 | Fixed data corruption bugs in transfer encoding chunked code (!480)
Date: Sun, 24 Jan 2021 12:17:26 +0000



Tim Rühsen started a new discussion on libwget/http.c: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/480#note_492566057

>  
>               if (nread < 4) continue;
>  
> -             if (nread == nbytes)
> +             if (nread == nbytes || nread - nbytes < 3)

IMO, we can simplify to `if (nread - nbytes <= 4)` here.

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




reply via email to

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