This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: I: [PATCH] few asprintf error handling fixes


On Tue, Jun 01, 2004 at 03:18:32PM -0700, Ulrich Drepper wrote:
> I've applied it now.  The reason I haven't done it before is that I
> thought we should change asprintf to clean the result pointer in case of
> a failure.  The can have a negative side effect (maybe some programs
> depends on current behavior) so I wanted to check. [...]

The current behavior is undefined behavior, the result pointer after
failed asprintf call may contain any value, e.g. pointer to already freed
memory.  I'm doubt that some programs could depend on this behavior.


-- 
ldv

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]