aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_threads.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-11-09 22:50:36 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-11-11 19:57:49 +0100
commit10120e6ab545c18a89f8f23006322e2aa23fa15d (patch)
treec59fbfaff3c4e03636952544a93aaf373d9c602a /lib/curl_threads.h
parent082e8a3b03d2c47d237994675bface127ab23c29 (diff)
progress_cb: avoid buffer overflow
The progress bar output function would blindly use the terminal width without bounds checking. When using a very wide terminal that caused a buffer overflow and segfault. We now limit the max bar with to 255 columns, and I simplified the code to avoid an extra snprintf and buffer. Bug: http://curl.haxx.se/bug/view.cgi?id=3435710 Reported by: Alexey Zakhlestin
Diffstat (limited to 'lib/curl_threads.h')
0 files changed, 0 insertions, 0 deletions