This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix tst-sscanf and tst-swscanf on 64-bit
- From: David Miller <davem at davemloft dot net>
- To: siddhesh at redhat dot com
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 05 Feb 2014 22:13:44 -0800 (PST)
- Subject: Re: [PATCH] Fix tst-sscanf and tst-swscanf on 64-bit
- Authentication-results: sourceware.org; auth=none
- References: <20140205 dot 194530 dot 2146081301066235764 dot davem at davemloft dot net> <20140206052812 dot GI26862 at spoyarek dot pnq dot redhat dot com>
From: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Thu, 6 Feb 2014 10:58:12 +0530
> On Wed, Feb 05, 2014 at 07:45:30PM -0800, David Miller wrote:
>>
>> In the glibc-2.19 port status entry for sparc 64-bit I indicated
>> that these two tests get a bus error, and I just figured out why.
>>
>> The dummy variable passed to sscanf() in the int_tests[] run needs
>> to be at least as large as a pointer.
>>
>> MIPS 64-bit was probably failing in an identical way. It will fail on
>> any 64-bit platform where unaligned accesses generate an exception.
>>
>> Ok to commit?
>
> Looks good to me.
Thanks, committed.