]> git.ipfire.org Git - thirdparty/curl.git/commit
curl: improve the existing file check with -J
authorDaniel Stenberg <daniel@haxx.se>
Mon, 27 Jul 2020 10:44:19 +0000 (12:44 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 28 Jul 2020 21:28:40 +0000 (23:28 +0200)
commit81b4e99b1e1a5a6ac06bcfba1bf4464085ea9688
tree63f2ee22b9ce47890b95ae4b2f7a7130df5e1ab4
parent2b6b843bb133b1a2928a82def520084c093076d0
curl: improve the existing file check with -J

Previously a file that isn't user-readable but is user-writable would
not be properly avoided and would get overwritten.

Reported-by: BrumBrum on hackerone
Assisted-by: Jay Satiro
Bug: https://hackerone.com/reports/926638
Closes #5731
lib/memdebug.c
lib/memdebug.h
src/tool_cb_wrt.c