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: Tue, 29 Dec 2020 21:52:06 +0000



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

>                                       if (conn->abort_indicator || 
> abort_indicator)
>                                               goto cleanup;
>  
> +                                     if (body_len + 1024 > bufsize) {
> +                                             if 
> (wget_buffer_ensure_capacity(conn->buf, bufsize + 1024) != WGET_E_SUCCESS) {
> +                                                     error_printf(_("Failed 
> to allocate %zu bytes\n"), bufsize + 1024);
> +                                                     goto cleanup;
> +                                             }
> +                                             p = conn->buf->data + (p - 
> buf); 

Thank you! Fixed

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




reply via email to

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