curl-users
Re: Prevent/confirm before dumping binary data to terminal?
From: Gisle Vanem <gvanem_at_yahoo.no>
Date: Thu, 27 Feb 2014 09:58:21 +0100
Date: Thu, 27 Feb 2014 09:58:21 +0100
"Dan Fandrich" <dan_at_coneharvesters.com> wrote:
> A straightforward method I've seen used and used myself in the past
> is to simply look for a binary '\0' (nul) byte in the first X bytes, where X
> should be at least a couple of KB to increase the possibility that pure random
> bytes result in at least one nul.
Sounds good and safe enough.
--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-27