coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undefined behaviour in environ


From: Bruno Haible
Subject: Re: undefined behaviour in environ
Date: Wed, 26 Aug 2026 16:08:40 +0200

Collin Funk wrote:
> As far as I am aware, all implementations will insert the duplicate at
> the end of ENVIRON and just return the first one when getenv is called.

Do you mean, when the environment contains a string "FOO" (without '=' sign),
then setting "FOO=value" will produce an environment where getenv("FOO")
is "" or NULL but not "value"? That would be a kind of denial-of-service
attack on all subprocesses.

Or did I misunderstand you?

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]