[Bug 268479] lib/libc/stdlib/getenv.c may have a problem with putenv()

[email protected]
Newsgroups gmane.os.freebsd.devel.standards
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268479

Mark Millard <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Mark Millard <[email protected]> ---
(In reply to Dennis Clarke from comment #1)

The way I read that material it indicates:

A) '\0' is available as a potential internal(!) string terminator
   because the content of the string being represented is
   disallowed from including a '\0'.

B) Nothing in the wording indicates an empty string is disallowed
   from being represented. Such an empty string could be followed
   by a string terminator ('\0') in the internal representation.

> However putenv and setenv both allow the value to be just a NUL byte '\0'

I suspect that this is '\0' used as an internal-string-terminator,
not as content of the represented string.

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.