You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compiled curl git f147c6 with Clang and ASan. ./curl -q -K test0000.conf file:///dev/null
And then this happened
Warning: test0000.conf:1: warning:
Warning: '000000000000000000000000000000000000000000000000000000000000000000000
Warning: 0000000000000000000000000000000000000000000▒'▒r▒▒▒▒' is unknown
*SNIP*
AddressSanitizer:DEADLYSIGNAL
=================================================================
==14960==ERROR: AddressSanitizer: SEGV on unknown address 0x0000000004b0 (pc 0x00000050c173 bp 0x7ffc01a5d450 sp 0x7ffc01a5d1f0 T0)
==14960==The signal is caused by a READ memory access.
==14960==Hint: address points to the zero page.
#0 0x50c172 in tool_create_output_file /root/curl/build/src/../../src/tool_cb_wrt.c:41:13
#1 0x54db90 in post_per_transfer /root/curl/build/src/../../src/tool_operate.c:383:24
#2 0x54c76f in run_all_transfers /root/curl/build/src/../../src/tool_operate.c:2385:24
#3 0x54a843 in operate /root/curl/build/src/../../src/tool_operate.c:2491:18
#4 0x547b06 in main /root/curl/build/src/../../src/tool_main.c:314:14
#5 0x7f80ff3f909a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2409a)
#6 0x41e5e9 in _start (/root/curl/build/src/curl+0x41e5e9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /root/curl/build/src/../../src/tool_cb_wrt.c:41:13 in tool_create_output_file
As it was just unnecessary duplicated information already stored in the
'per_transfer' struct and that's around mostly anyway.
The duplicated pointer caused problems when the code flow was aborted
before the dupe was filled in and could cause a NULL pointer access.
Reported-by: Brian Carpenter
Fixes#4807
I did this
Compiled curl
git f147c6
with Clang and ASan../curl -q -K test0000.conf file:///dev/null
And then this happened
However, I expected the following
No crash.
curl/libcurl version
git f147c6
operating system
Ubuntu
test0000.conf base64
The text was updated successfully, but these errors were encountered: