This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4977] SEGV in strlen() of string argument of vsnprintf call on RHEL WS3/64-bit
- From: "timp at pulsic dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 29 Aug 2007 15:58:23 -0000
- Subject: [Bug libc/4977] SEGV in strlen() of string argument of vsnprintf call on RHEL WS3/64-bit
- References: <20070829152853.4977.timp@pulsic.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From timp at pulsic dot com 2007-08-29 15:58 -------
(In reply to comment #1)
> The testcase is invalid.
> Please read http://www.opengroup.org/onlinepubs/009695399/basedefs/stdarg.h.html
> carefully.
Agh - stupidity hits. Thanks for the link - I guess this means passing the
va_list as a function parameter is highly implementation specific and will
potentially be unavailable on some systems (e.g. HP-UX 11i even with recent
compilers has no va_copy) or with no c9x compliant compilers.
> Particularly you are missing va_copy and another va_end.
yep - on C99 systems. That went past a few of us, should have realised.
Cheers
tim
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4977
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.