]> granicus.if.org Git - curl/commit
curl: prevent binary output spewed to terminal
authorDaniel Stenberg <daniel@haxx.se>
Fri, 16 Jun 2017 09:30:36 +0000 (11:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Jun 2017 21:38:13 +0000 (23:38 +0200)
commit5385450afd61328e7d24b50eeffc2b1571cd9e2f
treeabed28837e3bc58605b3963280b9b2aec62815d8
parentce2cc568f822605ae4258ec25b87b59b24c7bd19
curl: prevent binary output spewed to terminal

... unless "--output -" is used. Binary detection is done by simply
checking for a binary zero in early data.

Added test 1425 1426 to verify.

Closes #1512
docs/TODO
src/tool_cb_wrt.c
src/tool_cfgable.h
src/tool_getparam.c
src/tool_help.c
src/tool_main.c
src/tool_operate.c
tests/data/Makefile.inc
tests/data/test1425 [new file with mode: 0644]
tests/data/test1426 [new file with mode: 0644]