From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18978 invoked by alias); 7 Jul 2008 19:43:19 -0000 Received: (qmail 18843 invoked by uid 48); 7 Jul 2008 19:42:38 -0000 Date: Mon, 07 Jul 2008 19:43:00 -0000 Message-ID: <20080707194238.18842.qmail@sourceware.org> From: "jakub at redhat dot com" To: glibc-bugs-regex@sources.redhat.com In-Reply-To: <20080704200314.6722.lists@roberthogan.net> References: <20080704200314.6722.lists@roberthogan.net> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug regex/6722] sscanf bug when parsing lines from /proc/net/tcp X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-regex-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sourceware.org X-SW-Source: 2008-07/txt/msg00004.txt.bz2 ------- Additional Comments From jakub at redhat dot com 2008-07-07 19:42 ------- Well, locaddr and remaddr are 32-bit ints, but locport and remport are not; the testcase doesn't only violate aliasing rules, but with the 32-bit write to 16-bit memory locations also clobbers unrelated memory on the stack. Either use %8x:%4hx and kill the bogus casts, or you need to assign to int/unsigned int temporaries and copy to the short vars afterwards. -- http://sourceware.org/bugzilla/show_bug.cgi?id=6722 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.