curl/src
Daniel Gustafsson 6df5f35e6a tool_cb_prg: Fix integer overflow in progress bar
Commit 61faa0b420 fixed the progress bar
width calculation to avoid integer overflow, but failed to account for
the fact that initial_size is initialized to -1 when the file size is
retrieved from the remote on an upload, causing another signed integer
overflow.  Fix by separately checking for this case before the width
calculation.

Closes #3984
Reported-by: Brian Carpenter (Geeknik Labs)
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
2019-06-10 09:32:30 +02:00
..
macos
.gitignore
CMakeLists.txt
curl.rc
Makefile.am
makefile.amiga
makefile.dj
Makefile.inc
Makefile.m32
Makefile.netware
Makefile.Watcom
mkhelp.pl
slist_wc.c
slist_wc.h
tool_binmode.c
tool_binmode.h
tool_bname.c
tool_bname.h
tool_cb_dbg.c
tool_cb_dbg.h
tool_cb_hdr.c
tool_cb_hdr.h
tool_cb_prg.c tool_cb_prg: Fix integer overflow in progress bar 2019-06-10 09:32:30 +02:00
tool_cb_prg.h
tool_cb_rea.c
tool_cb_rea.h
tool_cb_see.c
tool_cb_see.h
tool_cb_wrt.c
tool_cb_wrt.h
tool_cfgable.c Revert all SASL authzid (new feature) commits 2019-05-25 23:36:11 +02:00
tool_cfgable.h Revert all SASL authzid (new feature) commits 2019-05-25 23:36:11 +02:00
tool_convert.c
tool_convert.h
tool_dirhie.c
tool_dirhie.h
tool_doswin.c
tool_doswin.h
tool_easysrc.c
tool_easysrc.h
tool_filetime.c
tool_filetime.h
tool_formparse.c
tool_formparse.h
tool_getparam.c Revert all SASL authzid (new feature) commits 2019-05-25 23:36:11 +02:00
tool_getparam.h curl: report error for "--no-" on non-boolean options 2019-05-20 19:04:54 +02:00
tool_getpass.c build: fix Codacy warnings 2019-06-05 20:38:06 +02:00
tool_getpass.h
tool_help.c tls13-docs: mention it is only for OpenSSL >= 1.1.1 2019-06-02 16:15:45 +02:00
tool_help.h
tool_helpers.c curl: report error for "--no-" on non-boolean options 2019-05-20 19:04:54 +02:00
tool_helpers.h
tool_homedir.c
tool_homedir.h
tool_hugehelp.c.cvs
tool_hugehelp.h
tool_libinfo.c
tool_libinfo.h
tool_main.c
tool_main.h
tool_metalink.c
tool_metalink.h
tool_msgs.c
tool_msgs.h
tool_operate.c Revert all SASL authzid (new feature) commits 2019-05-25 23:36:11 +02:00
tool_operate.h
tool_operhlp.c
tool_operhlp.h
tool_panykey.c
tool_panykey.h
tool_paramhlp.c
tool_paramhlp.h
tool_parsecfg.c tool_parsecfg: Use correct return type for GetModuleFileName() 2019-06-04 01:30:16 +01:00
tool_parsecfg.h
tool_sdecls.h
tool_setopt.c tool_setopt: for builds with disabled-proxy, skip all proxy setopts() 2019-05-23 23:31:43 +02:00
tool_setopt.h tool_setopt: for builds with disabled-proxy, skip all proxy setopts() 2019-05-23 23:31:43 +02:00
tool_setup.h
tool_sleep.c
tool_sleep.h
tool_strdup.c
tool_strdup.h
tool_urlglob.c
tool_urlglob.h
tool_util.c
tool_util.h
tool_version.h
tool_vms.c
tool_vms.h
tool_writeout.c
tool_writeout.h
tool_xattr.c
tool_xattr.h