Closed Bug 258337 Opened 21 years ago Closed 20 years ago

extension manager nsExtensionsDataSource_addItemMetadata uses wrong array length in a loop

Categories

(Toolkit :: Add-ons Manager, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.8final

People

(Reporter: ted, Assigned: ted)

References

()

Details

Attachments

(2 obsolete files)

http://lxr.mozilla.org/aviarybranch/source/toolkit/mozapps/extensions/src/nsExtensionManager.js.in#3750 3749 var manyProps = ["contributor"]; 3750 for (var i = 0; i < singleProps.length; ++i) { 3751 var property = this._emR(manyProps[i]); 3750 uses singleProps.length, when it really means to use manyProps.length.
Attached patch Use the right array length (obsolete) — Splinter Review
Trivial fix.
Assignee: bugs → ted.mielczarek
Status: NEW → ASSIGNED
Comment on attachment 158140 [details] [diff] [review] Use the right array length It's 1 line. You know you want to r=.
Attachment #158140 - Flags: review?(mconnor)
Comment on attachment 158140 [details] [diff] [review] Use the right array length diff -u6 at least, -u8 is preferable especially on short patches like this.
Attachment #158140 - Flags: review?(mconnor) → review+
Comment on attachment 158140 [details] [diff] [review] Use the right array length Trivial bugfix, it ought to make 1.0.
Attachment #158140 - Flags: approval-aviary?
Comment on attachment 158140 [details] [diff] [review] Use the right array length a=asa for aviary checkin.
Attachment #158140 - Flags: approval-aviary? → approval-aviary+
Could someone check this in for me?
Comment on attachment 158140 [details] [diff] [review] Use the right array length need re-approval now that we're past 1.0 RC. setting back to request.
Attachment #158140 - Flags: approval-aviary+ → approval-aviary?
Comment on attachment 158140 [details] [diff] [review] Use the right array length too late for 1.0
Attachment #158140 - Flags: approval-aviary? → approval-aviary-
Patch looks bitrotted on trunk.
Version: 1.0 Branch → Trunk
Updated
Attachment #158140 - Attachment is obsolete: true
Whiteboard: checkin-needed
Who can review and land this?
Comment on attachment 177801 [details] [diff] [review] Updated to trunk [Checkin: See comment 14] r=darin I don't know this code, but clearly if this code is indexing manyProps in the loop body with i, then i should range from 0 to manyProps.length.
Attachment #177801 - Flags: review+
Please do not land this until Ben's EM rewrite lands.
This was fixed by the checkin of the patch in bug 291946
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
OS: All → Windows XP
Hardware: All → PC
Resolution: --- → FIXED
Attachment #177801 - Attachment description: Updated to trunk → Updated to trunk [Checkin: See comment 14]
Attachment #177801 - Attachment is obsolete: true
Depends on: 291946
Whiteboard: checkin-needed
Target Milestone: --- → Firefox1.1
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: