NetBSD-Bugs archive

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

Re: lib/58453: endptr can be unitialized if an invalid base is passed to strto*(3)



The following reply was made to PR lib/58453; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: Christos Zoulas <christos%zoulas.com@localhost>
Cc: Taylor R Campbell <riastradh%NetBSD.org@localhost>, gnats-bugs%netbsd.org@localhost,
        Christos Zoulas <christos%astron.com@localhost>, netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/58453: endptr can be unitialized if an invalid base is passed to strto*(3)
Date: Tue, 23 Jul 2024 05:55:33 +0700

     Date:        Mon, 22 Jul 2024 17:58:14 -0400
     From:        Christos Zoulas <christos%zoulas.com@localhost>
     Message-ID:  <910773C7-98CA-4CB9-9114-33AE517E74AB%zoulas.com@localhost>
 
   | I think that there is a disadvantage to adding the test in that
   | it enforces a behavior which is strictly not required. So if the
   | tests were used on Linux for example, they would fail.
 
 I remain confused.   What test is that?   Or tests that would be used on
 linux?
 
 If this is about some ATF test (the PR doesn't even suggest that though)
 then it would depend upon the test, some of them are explicitly testing
 NetBSD behaviour, to ensure it isn't accidentally altered (breaking backwards
 compat) and others test required behaviour, to make sure our implementation
 doesn't have design/impl bugs.
 
 Ideally the former kind would skip if the test isn't being run on NetBSD,
 but I doubt that many of them do.
 
 kre
 


Home | Main Index | Thread Index | Old Index