nsAttrAndChildArray::GrowBy worries coverity

RESOLVED FIXED

Status

()

Core
DOM
--
trivial
RESOLVED FIXED
9 years ago
8 years ago

People

(Reporter: timeless, Assigned: timeless)

Tracking

({coverity})

Trunk
coverity
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Assignee)

Description

9 years ago
the code currently touches a pointer that has been realloc'd, which upsets coverity

it also spends time deciding if it should use Realloc or not, but it doesn't have to, realloc will act as malloc if passed a null in pointer:
http://www.mozilla.org/projects/nspr/reference/html/prmem2.html
(Assignee)

Comment 1

9 years ago
Created attachment 388825 [details] [diff] [review]
simplify code
Attachment #388825 - Flags: review?(jonas)
Attachment #388825 - Flags: superreview+
Attachment #388825 - Flags: review?(jonas)
Attachment #388825 - Flags: review+
(Assignee)

Comment 2

8 years ago
http://hg.mozilla.org/mozilla-central/rev/c9ae720fb05d
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.