]> granicus.if.org Git - curl/commit
curl_multibyte: fix a malloc overcalculation
authorJay Satiro <raysatiro@yahoo.com>
Thu, 1 Nov 2018 06:53:22 +0000 (02:53 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 6 Nov 2018 08:11:05 +0000 (03:11 -0500)
commit28429fb1753d63a659f38577b39e0b5747f28939
tree0829bf9ccfc22425b631eef4edd7e7641d05532c
parent53db15ba5524584196eedb3abe8d2e97fb5a3cc0
curl_multibyte: fix a malloc overcalculation

Prior to this change twice as many bytes as necessary were malloc'd when
converting wchar to UTF8. To allay confusion in the future I also
changed the variable name for the amount of bytes from len to bytes.

Closes https://github.com/curl/curl/pull/3209
lib/curl_multibyte.c