NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/58136 (Use after free in libintl pgettext)
The following reply was made to PR lib/58136; it has been noted by GNATS.
From: Paul Ripke <stix%stix.id.au@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: lib/58136 (Use after free in libintl pgettext)
Date: Mon, 19 Aug 2024 21:45:04 +1000
From my reading of C's behaviour, dereferencing a freed pointer is undefined
behaviour, obviously. But using the pointer value should not be? Indeed, when
compiled with clang/llvm, your code results in only one call to free.
Agreed on the missing test, though. This code is old and crufty, does it have
any coverage at all? I didn't see any after a brief look.
--
Paul Ripke
"Great minds discuss ideas, average minds discuss events, small minds
discuss people."
-- Disputed: Often attributed to Eleanor Roosevelt. 1948.
Home |
Main Index |
Thread Index |
Old Index