[PATCH] Fix addseverity

Ulrich Drepper drepper@redhat.com
Tue Jan 25 22:19:00 GMT 2005


Jakub Jelinek wrote:
> if the string passed to addseverity is freed by the caller,
> we still reference freed up memory, or if the string passed to addseverity
> is overwritten, we use whatever it was overwritten to.

I've never seen anything to the contrary that this is acceptable.  The 
function is not part of any spec and when I wrote this code this seemed 
to be what other implementations did.  What program has problems with 
the current code?

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/libc-hacker/attachments/20050125/cebc92a6/attachment.sig>


More information about the Libc-hacker mailing list