]> granicus.if.org Git - curl/commit
rtsp: do not call fwrite() with NULL pointer FILE *
authorDaniel Stenberg <daniel@haxx.se>
Fri, 8 Sep 2017 08:20:36 +0000 (10:20 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 8 Sep 2017 21:56:02 +0000 (23:56 +0200)
commita14f7152ce1c25cf110d3ccf640f9d4ce17dacd3
tree533ca5485d80c3f5f4d9e1e842e75e129d3f1481
parentf8548e84adc4cc55c274beb23690b8a5f5b827bf
rtsp: do not call fwrite() with NULL pointer FILE *

If the default write callback is used and no destination has been set, a
NULL pointer would be passed to fwrite()'s 4th argument.

OSS-fuzz bug https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3327
(not publicly open yet)

Detected by OSS-fuzz
Closes #1874
lib/rtsp.c
tests/fuzz/curl_fuzz_data/oss-fuzz-3327 [new file with mode: 0644]