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

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).