public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug libc/4977] SEGV in strlen() of string argument of vsnprintf call on RHEL WS3/64-bit
Date: Wed, 29 Aug 2007 16:41:00 -0000	[thread overview]
Message-ID: <20070829164055.12315.qmail@sourceware.org> (raw)
In-Reply-To: <20070829152853.4977.timp@pulsic.com>


------- Additional Comments From jakub at redhat dot com  2007-08-29 16:40 -------
Last note:
Each invocation of the va_start() and va_copy() macros shall be matched by a
corresponding invocation of the va_end() macro in the same function.
just to be sure.
The current va_end() is fine, all you need to add
va_list ap2;
va_copy (ap2, ap);
before the first vsnprintf call, change second (or first, doesn't matter which
one if just one) vsnprintf call to use ap2 instead and add
va_end (ap2);
after that call.

-- 


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.


      parent reply	other threads:[~2007-08-29 16:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-29 15:29 [Bug libc/4977] New: " timp at pulsic dot com
2007-08-29 15:40 ` [Bug libc/4977] " jakub at redhat dot com
2007-08-29 15:58 ` timp at pulsic dot com
2007-08-29 16:10 ` jakub at redhat dot com
2007-08-29 16:34 ` timp at pulsic dot com
2007-08-29 16:41 ` jakub at redhat dot com [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070829164055.12315.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).