cURL / Mailing Lists / curl-users / Single Mail


Re: Prevent/confirm before dumping binary data to terminal?

From: Gisle Vanem <>
Date: Thu, 27 Feb 2014 09:58:21 +0100

"Dan Fandrich" <> 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.

List admin:
Received on 2014-02-27