Closed Bug 106495 Opened 23 years ago Closed 17 years ago

js_strtod and js_strtointeger shouldn't require NUL termination

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: brendan, Assigned: igor)

References

Details

Attachments

(1 file, 2 obsolete files)

See bug 56940. The string length or a fencepost pointer computed by adding length to chars (cp) should do the trick. Low priority bug. /be
2x posted *** This bug has been marked as a duplicate of 106494 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Verified Duplicate -
Status: RESOLVED → VERIFIED
*** Bug 106494 has been marked as a duplicate of this bug. ***
No typo in my comment here, this is the one not to dup. /be
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
Status: REOPENED → ASSIGNED
Target Milestone: --- → mozilla0.9.8
targeting 9.9
Target Milestone: mozilla0.9.8 → mozilla0.9.9
Target Milestone: mozilla0.9.9 → mozilla1.0.1
Assignee: khanson → general
Status: ASSIGNED → NEW
QA Contact: pschwartau → general
Target Milestone: mozilla1.0.1 → ---
Attached patch implementation v1 (quilt patch) (obsolete) (deleted) — Splinter Review
This is a quilt patch. I will post cvs diff version after resolving bug 389880.
Assignee: general → igor
Status: NEW → ASSIGNED
Attached patch implementation v2 (obsolete) (deleted) — Splinter Review
Here is cvs diff for a new version of the patch with a fix for js_strtod to ensure that temporary buffer is always 0-terminated.
Attachment #274220 - Attachment is obsolete: true
Attachment #274293 - Flags: review?(brendan)
Comment on attachment 274293 [details] [diff] [review] implementation v2 Thanks, r=me. /be
Attachment #274293 - Flags: review?(brendan) → review+
I checked in the patch from comment 7 to the trunk: Checking in jsnum.c; /cvsroot/mozilla/js/src/jsnum.c,v <-- jsnum.c new revision: 3.83; previous revision: 3.82 done Checking in jsnum.h; /cvsroot/mozilla/js/src/jsnum.h,v <-- jsnum.h new revision: 3.30; previous revision: 3.29 done Checking in jsscan.c; /cvsroot/mozilla/js/src/jsscan.c,v <-- jsscan.c new revision: 3.130; previous revision: 3.129 done Checking in jsstr.c; /cvsroot/mozilla/js/src/jsstr.c,v <-- jsstr.c new revision: 3.155; previous revision: 3.154 done Checking in jsstr.h; /cvsroot/mozilla/js/src/jsstr.h,v <-- jsstr.h new revision: 3.41; previous revision: 3.40 done
Status: ASSIGNED → RESOLVED
Closed: 23 years ago17 years ago
Resolution: --- → FIXED
I baked out the last commit to wait until the tree will be opened: Checking in jsnum.c; /cvsroot/mozilla/js/src/jsnum.c,v <-- jsnum.c new revision: 3.84; previous revision: 3.83 done Checking in jsnum.h; /cvsroot/mozilla/js/src/jsnum.h,v <-- jsnum.h new revision: 3.31; previous revision: 3.30 done Checking in jsscan.c; /cvsroot/mozilla/js/src/jsscan.c,v <-- jsscan.c new revision: 3.131; previous revision: 3.130 done Checking in jsstr.c; /cvsroot/mozilla/js/src/jsstr.c,v <-- jsstr.c new revision: 3.156; previous revision: 3.155 done Checking in jsstr.h; /cvsroot/mozilla/js/src/jsstr.h,v <-- jsstr.h new revision: 3.42; previous revision: 3.41 done
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch implementation v2b (deleted) — Splinter Review
This is the patch to commit when the tree will be opened. v2 contained unrelated changes.
Attachment #274293 - Attachment is obsolete: true
Attachment #274918 - Flags: review+
Flags: blocking1.9?
Attachment #274918 - Attachment is patch: true
Attachment #274918 - Attachment mime type: text/x-patch → text/plain
Attachment #274918 - Flags: approval1.9+
I checked in the patch from comment 11 to the trunk: Checking in jsnum.c; /cvsroot/mozilla/js/src/jsnum.c,v <-- jsnum.c new revision: 3.87; previous revision: 3.86 done Checking in jsnum.h; /cvsroot/mozilla/js/src/jsnum.h,v <-- jsnum.h new revision: 3.34; previous revision: 3.33 done Checking in jsscan.c; /cvsroot/mozilla/js/src/jsscan.c,v <-- jsscan.c new revision: 3.134; previous revision: 3.133 done Checking in jsstr.c; /cvsroot/mozilla/js/src/jsstr.c,v <-- jsstr.c new revision: 3.159; previous revision: 3.158 done Checking in jsstr.h; /cvsroot/mozilla/js/src/jsstr.h,v <-- jsstr.h new revision: 3.45; previous revision: 3.44 done
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Clearing blocking 1.9 ? flag as the bug was fixed based on 1.9 approval for the checked-in patch.
Flags: blocking1.9?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: