ALT Linux Bugzilla
– Attachment 1472 Details for
Bug 9493
Assert failure when parsing unzoned times
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Fix for the crasher
nspr-4.7.0-fix-parse-time-crash.patch (text/plain), 650 bytes, created by
Alexey Rusakov
on 2006-04-30 01:53:33 MSD
(
hide
)
Description:
Fix for the crasher
Filename:
MIME Type:
Creator:
Alexey Rusakov
Created:
2006-04-30 01:53:33 MSD
Size:
650 bytes
patch
obsolete
>--- mozilla/nsprpub/pr/src/misc/prtime.c >+++ mozilla/nsprpub/pr/src/misc/prtime.c.fixed >@@ -1529,11 +1529,12 @@ > struct tm localTime; > time_t secs; > >- PR_ASSERT(tm.tm_month > -1 >+ if (!(tm.tm_month > -1 > && tm.tm_mday > 0 > && tm.tm_hour > -1 > && tm.tm_min > -1 >- && tm.tm_sec > -1); >+ && tm.tm_sec > -1)) >+ return PR_FAILURE; > > /* > * To obtain time_t from a tm structure representing the local
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 9493
: 1472