When asking to get a file from a file:// URL, libcurl provides a feature that outputs meta-data about the file using HTTP-like headers. The code doing this would send the wrong buffer to the user (stdout or the application's provide callback), which could lead to other private data from the heap to get inadvertently displayed. The wrong buffer was an uninitialized memory area allocated on the heap and if it turned out to not contain any zero byte, it would continue and display the data following that buffer in memory. Affected versions: libcurl 7.54.1
Acknowledgments: Name: the Curl project Upstream: Even Rouault
Created attachment 1308974 [details] Upstream patch
External References: https://curl.haxx.se/docs/adv_20170809C.html
Created curl tracking bugs for this issue: Affects: fedora-all [bug 1479670] Created mingw-curl tracking bugs for this issue: Affects: fedora-all [bug 1479669]