From 47dd957daff9199daa5fabfc557fe8c36d61f375 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 9 Sep 2020 15:41:25 +0200 Subject: 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 --- winbuild/MakefileBuild.vc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'winbuild/MakefileBuild.vc') diff --git a/winbuild/MakefileBuild.vc b/winbuild/MakefileBuild.vc index eefc091a2..6460e18f2 100644 --- a/winbuild/MakefileBuild.vc +++ b/winbuild/MakefileBuild.vc @@ -620,7 +620,8 @@ CURL_FROM_LIBCURL=$(CURL_DIROBJ)\tool_hugehelp.obj \ $(CURL_DIROBJ)\warnless.obj \ $(CURL_DIROBJ)\curl_ctype.obj \ $(CURL_DIROBJ)\curl_multibyte.obj \ - $(CURL_DIROBJ)\version_win32.obj + $(CURL_DIROBJ)\version_win32.obj \ + $(CURL_DIROBJ)\dynbuf.obj $(PROGRAM_NAME): $(CURL_DIROBJ) $(CURL_FROM_LIBCURL) $(EXE_OBJS) $(CURL_LINK) $(CURL_LFLAGS) $(CURL_LIBCURL_LIBNAME) $(WIN_LIBS) $(CURL_FROM_LIBCURL) $(EXE_OBJS) @@ -643,6 +644,8 @@ $(CURL_DIROBJ)\curl_multibyte.obj: ../lib/curl_multibyte.c $(CURL_CC) $(CURL_CFLAGS) /Fo"$@" ../lib/curl_multibyte.c $(CURL_DIROBJ)\version_win32.obj: ../lib/version_win32.c $(CURL_CC) $(CURL_CFLAGS) /Fo"$@" ../lib/version_win32.c +$(CURL_DIROBJ)\dynbuf.obj: ../lib/dynbuf.c + $(CURL_CC) $(CURL_CFLAGS) /Fo"$@" ../lib/dynbuf.c $(CURL_DIROBJ)\curl.res: $(CURL_SRC_DIR)\curl.rc rc $(CURL_RC_FLAGS) -- cgit v1.2.1