curl-library
Issue with http_chunks.c
From: Glen A Johnson Jr. <glenajohnsonjr_at_msn.com>
Date: Sat, 19 Jul 2014 15:48:05 -0400
Received on 2014-07-19
Date: Sat, 19 Jul 2014 15:48:05 -0400
curl version 7.37.1
This issue was discovered when running with a 64bit compilation.
The assignment of a ssize_t pointer from the parameter list to a size_t
pointer in the function causes stack corruption when data is assigned to
the variables location during 64bit execution.
The diff file attached shows one method to correct the issue. A simpler
method would be to eliminate the variable "wrote" and use "*wrotep +=
(ssize_t)piece;" at ~line 237.
Glen Johnson
Phone: 321-696-3122
Email: glenajohnsonjr_at_msn.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- application/octet-stream attachment: http_chunks.diff