klocwork cascading memory leak in mpp_make_prime

RESOLVED FIXED in 3.12

Status

NSS
Libraries
P2
normal
RESOLVED FIXED
11 years ago
11 years ago

People

(Reporter: Nelson Bolyard (seldom reads bugmail), Assigned: Alexei Volkov)

Tracking

({klocwork, mlk})

trunk
3.12
klocwork, mlk

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Klocwork ID 92773
File     nss/lib/freebl/mpi/mpprime.c
Function mpp_make_prime

Memory leak. Dynamic memory stored in 'sieve' allocated through function 'malloc' at line 432 is lost at line 435. Also there is one similar error on line 436.
(Assignee)

Comment 1

11 years ago
Created attachment 240985 [details] [diff] [review]
check function params before allocation
Assignee: nobody → alexei.volkov.bugs
Status: NEW → ASSIGNED
Attachment #240985 - Flags: review?(nelson)
(Reporter)

Comment 2

11 years ago
Comment on attachment 240985 [details] [diff] [review]
check function params before allocation

r=nelson
Attachment #240985 - Flags: review?(nelson) → review+
(Reporter)

Updated

11 years ago
Priority: -- → P2
Target Milestone: --- → 3.12
(Assignee)

Comment 3

11 years ago
/cvsroot/mozilla/security/nss/lib/freebl/mpi/mpprime.c,v  <--  mpprime.c
new revision: 1.23; previous revision: 1.22
Status: ASSIGNED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.