Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: setenv(3) segfaults when value == NULL
To:
enh <enh@google.com>
Cc:
"Lyndon Nerenberg (VE7TFX/VE6BBM)" <lyndon@orthanc.ca>, tech@openbsd.org
Date:
Mon, 16 Mar 2026 18:32:15 -0600

Download raw body.

Thread
enh <enh@google.com> wrote:

> actually, re-reading POSIX, openbsd and android are already returning
> EINVAL in cases where we could just blow up: none of the environment
> functions are specified to return EINVAL for anything other than
> unexpected '='s/empty strings. null pointers aren't mentioned...

So Lyndon made up a rule on his own?