public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/16429] New: strptime truncate 64bit pointer to 32bit
@ 2014-01-10 12:05 hxnhxn at gmail dot com
2014-01-10 13:25 ` [Bug libc/16429] " neleai at seznam dot cz
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: hxnhxn at gmail dot com @ 2014-01-10 12:05 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16429
Bug ID: 16429
Summary: strptime truncate 64bit pointer to 32bit
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: hxnhxn at gmail dot com
CC: drepper.fsp at gmail dot com
under 64-bit enviroment, when input an 64-bit pointer as arg1 to strptime, e.g,
a char[] array, it will return a pointer with higher 4 bytes set to zero.
for example:
char timestr[655] = "2011-11-27T23:06:23qi/ning";
struct tm t;
char * ret = strptime(timestr, "%FT%H:%M:%S", &t);
printf("%llx %llx\n", ret, timestr);
printf("%c\n", *ret);
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/16429] strptime truncate 64bit pointer to 32bit
2014-01-10 12:05 [Bug libc/16429] New: strptime truncate 64bit pointer to 32bit hxnhxn at gmail dot com
@ 2014-01-10 13:25 ` neleai at seznam dot cz
2014-01-10 20:01 ` bugdal at aerifal dot cx
2014-06-13 9:05 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: neleai at seznam dot cz @ 2014-01-10 13:25 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16429
Ondrej Bilka <neleai at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |neleai at seznam dot cz
Resolution|--- |INVALID
--- Comment #1 from Ondrej Bilka <neleai at seznam dot cz> ---
Cannot replicate on x86-64.
Test program returns:
7fffffffe633 7fffffffe620
q
which has upper bytes nonzero.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/16429] strptime truncate 64bit pointer to 32bit
2014-01-10 12:05 [Bug libc/16429] New: strptime truncate 64bit pointer to 32bit hxnhxn at gmail dot com
2014-01-10 13:25 ` [Bug libc/16429] " neleai at seznam dot cz
@ 2014-01-10 20:01 ` bugdal at aerifal dot cx
2014-06-13 9:05 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: bugdal at aerifal dot cx @ 2014-01-10 20:01 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16429
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #2 from Rich Felker <bugdal at aerifal dot cx> ---
Next time try compiling with -Werror=implicit-function-declaration. You may
also want to file a bug report with GCC requesting that this be made default,
since use of implicit function declarations is always an error and is a
constraint violation.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/16429] strptime truncate 64bit pointer to 32bit
2014-01-10 12:05 [Bug libc/16429] New: strptime truncate 64bit pointer to 32bit hxnhxn at gmail dot com
2014-01-10 13:25 ` [Bug libc/16429] " neleai at seznam dot cz
2014-01-10 20:01 ` bugdal at aerifal dot cx
@ 2014-06-13 9:05 ` fweimer at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 9:05 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=16429
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-13 9:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-10 12:05 [Bug libc/16429] New: strptime truncate 64bit pointer to 32bit hxnhxn at gmail dot com
2014-01-10 13:25 ` [Bug libc/16429] " neleai at seznam dot cz
2014-01-10 20:01 ` bugdal at aerifal dot cx
2014-06-13 9:05 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).