Bug 58249
Summary: | sscanf() does not convert correctly. | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Jules Colding <jules> |
Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | CC: | fweimer |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-01-11 22:51:24 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jules Colding
2002-01-11 22:51:19 UTC
glibc is right, please reread info libc on formated input. %u conversion matches unsigned integer in DECIMAL radix (so it matches 0 but not the rest) - this is strtoul (, , 10) does. %i conversion matches optionally signed integer in decimal/octal/hex radix, is what strtol (, , 0) does. But in this second case the problem is that you're trying to put an value which doesn't fit into 32-bit signed integer (errno is set to ERANGE after second sscanf). |