Open
Bug 1906645
Opened 2 years ago
Updated 2 years ago
_md_ImportFileMapFromString in uxshm.c and w32shm.c don't check the return value of PR_sscanf
Categories
(NSPR :: NSPR, defect)
NSPR
NSPR
Tracking
(Not tracked)
NEW
People
(Reporter: mccr8, Unassigned)
References
(Blocks 1 open bug)
Details
No description provided.
| Reporter | ||
Comment 1•2 years ago
|
||
| Reporter | ||
Comment 2•2 years ago
|
||
If the return value is being intentionally ignored, it could be cast to void with (void) to indicate that.
Comment 3•2 years ago
|
||
The severity field is not set for this bug.
:KaiE, could you have a look please?
For more information, please visit BugBot documentation.
Flags: needinfo?(kaie)
Comment 4•2 years ago
|
||
I think the code should check that the expected number of items were obtained, and if not, return a failure.
A patch should be submitted against the separate NSPR repo.
https://hg.mozilla.org/projects/nspr
Flags: needinfo?(kaie)
Comment 5•2 years ago
|
||
The risk might be small. Apparently we're only parsing strings that have been created by NSPR itself?
Severity: -- → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•