From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12367 invoked by alias); 29 Aug 2007 16:41:04 -0000 Received: (qmail 12316 invoked by uid 48); 29 Aug 2007 16:40:55 -0000 Date: Wed, 29 Aug 2007 16:41:00 -0000 Message-ID: <20070829164055.12315.qmail@sourceware.org> From: "jakub at redhat dot com" To: glibc-bugs@sources.redhat.com In-Reply-To: <20070829152853.4977.timp@pulsic.com> References: <20070829152853.4977.timp@pulsic.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/4977] SEGV in strlen() of string argument of vsnprintf call on RHEL WS3/64-bit X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00152.txt.bz2 ------- 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.