curl: use curlx_dynbuf for realloc when loading config files

... fixes an integer overflow at the same time.

Reported-by: ihsinme on github
Assisted-by: Jay Satiro

Closes #5946
This commit is contained in:
Daniel Stenberg 2020-09-09 15:41:25 +02:00
parent c4ea71ae32
commit 47dd957daf
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 44 additions and 42 deletions

View file

@ -38,8 +38,8 @@ nothing
<file name="log/memdump">
MEM lib558.c: malloc()
MEM lib558.c: free()
MEM strdup.c: realloc()
MEM strdup.c: realloc()
MEM dynbuf.c: realloc()
MEM dynbuf.c: realloc()
MEM escape.c: free()
</file>
<stripfile>