[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/49185: strvisx: Handle zero-length input strings gracefully.
The following reply was made to PR lib/49185; it has been noted by GNATS.
From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
Subject: Re: lib/49185: strvisx: Handle zero-length input strings gracefully.
Date: Mon, 8 Sep 2014 18:49:09 +0200
On Mon, Sep 08, 2014 at 04:20:00PM +0000, conrad.meyer%isilon.com@localhost
> The internal istrsenvisx() routine overloaded the zero length value as a
> sentinel for "use strlen(3)." This is bad because the zero-length source
> has a defined behavior and the pointer for a zero-length string may be
> completely bogus.
At least the second half is wrong. A zero-length string still has to
match the valid object rules. That said, I don't see why this behavior
isn't provided under a flag.
Main Index |
Thread Index |