Closed Bug 545183 Opened 11 years ago Closed 11 years ago

formattm test crashes in strftime call on Android

Categories

(NSPR :: NSPR, defect)

ARM
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bcombee, Assigned: alexp)

References

Details

Attachments

(1 file)

The formattm test crashes when run on Android 2.0.1.  This looks to be a bug in the bionic libc, but I've not yet tracked down which format string item is the problem.  Through tracing in the debugger, I was able to determine the crash was inside the strftime code and that the C library had been linked correctly.
Assignee: wtc → alexp
Status: NEW → ASSIGNED
Attached patch FixSplinter Review
struct tm on Android has additional fields, which were not initialized in PR_FormatTime function (prtime.c).
Attachment #435312 - Flags: superreview?(wtc)
Attachment #435312 - Flags: review?(bugmail)
Attachment #435312 - Flags: review?(bugmail) → review+
Depends on: 542113
Attachment #435312 - Flags: superreview?(wtc) → superreview+
Landed in CVS:
Checking in pr/src/misc/prtime.c;
/cvsroot/mozilla/nsprpub/pr/src/misc/prtime.c,v  <--  prtime.c
new revision: 3.44; previous revision: 3.43
done
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.