Bug 240562 - strptime seg foult while tm not init
strptime seg foult while tm not init
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2007-05-18 10:01 EDT by ivan
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-05-19 03:59:30 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Sourceware 3944 None None None Never

  None (edit)
Description ivan 2007-05-18 10:01:29 EDT
thios is the code which is leading to crash
char *blub;
  for(unsigned int i=0; i< 0xFFFFFFFF; i++)
    struct tm *pT;
    pT = (struct tm *)malloc(sizeof(struct tm));
    printf("%d\n", i);
    pT->tm_mon = i;         
    strptime("2007201", "%Y%W%w", pT);

Actual results:

Expected results:

Additional info:
Comment 1 Jakub Jelinek 2007-05-19 03:59:30 EDT
Please try glibc-2.5-13.fc6 in FC6 updates testing or any recentish F7 glibc.

Note You need to log in before you can comment on or make changes to this bug.