[Bug 222530] New: inconsistent sscanf %d parsing
https://bugzilla.novell.com/show_bug.cgi?id=222530
Summary: inconsistent sscanf %d parsing
Product: SUSE LINUX 10.0
Version: Final
Platform: x86-64
OS/Version: Linux
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Development
AssignedTo: pth@novell.com
ReportedBy: matthias.andree@gmx.de
QAContact: qa@suse.de
sscanf parsing %d is inconsistent between 32 and 64 bit modes WRT overflow
handling:
ma@host:~> gcc -m64 -O -otry try.c
ma@host:~> ./try
n=1, i=-1, errno=34/Numerical result out of range
n=1, i=-1, errno=0/Success
n=1, i=2147483647, errno=0/Success
ma@host:~> gcc -m32 -O -otry try.c
ma@host:~> ./try
n=1, i=2147483647, errno=34/Numerical result out of range
n=1, i=2147483647, errno=34/Numerical result out of range
n=1, i=2147483647, errno=0/Success
ma@host:~> cat try.c
#include
https://bugzilla.novell.com/show_bug.cgi?id=222530 rguenther@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|rguenther@novell.com |pbaudis@novell.com ------- Comment #1 from rguenther@novell.com 2006-11-20 04:25 MST ------- This is a glibc issue. The error is in handling of sscanf("4294967295","%d", &i); which should show 'Numerical result out of range' even in the 64bit case. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222530 pbaudis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Critical |Normal ------- Comment #2 from pbaudis@novell.com 2006-11-22 17:48 MST ------- (Reducing severity, this is not really critical, you should always explain why a bug should have such a high severity.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=222530#c3
--- Comment #3 from Matthias Andree
https://bugzilla.novell.com/show_bug.cgi?id=222530
User cthiel@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=222530#c4
Christoph Thiel
https://bugzilla.novell.com/show_bug.cgi?id=222530
User matthias.andree@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=222530#c5
Matthias Andree
https://bugzilla.novell.com/show_bug.cgi?id=222530
User matthias.andree@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=222530#c6
--- Comment #6 from Matthias Andree
https://bugzilla.novell.com/show_bug.cgi?id=222530
User matthias.andree@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=222530#c7
Matthias Andree
https://bugzilla.novell.com/show_bug.cgi?id=222530
Matthias Andree
https://bugzilla.novell.com/show_bug.cgi?id=222530
Matthias Andree
https://bugzilla.novell.com/show_bug.cgi?id=222530
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=222530
User meissner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=222530#c8
--- Comment #8 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=222530
Martin Mrazik
https://bugzilla.novell.com/show_bug.cgi?id=222530
User meissner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=222530#c9
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=222530
User meissner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=222530#c10
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=222530
User matthias.andree@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=222530#c11
--- Comment #11 from Matthias Andree
https://bugzilla.novell.com/show_bug.cgi?id=222530
User pth@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=222530#c12
--- Comment #12 from Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=222530
User krahmer@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=222530#c13
Sebastian Krahmer
https://bugzilla.novell.com/show_bug.cgi?id=222530
User pbaudis@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=222530#c14
Petr Baudis
participants (1)
-
bugzilla_noreply@novell.com