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)

defect

Tracking

(Not tracked)

People

(Reporter: mccr8, Unassigned)

References

(Blocks 1 open bug)

Details

No description provided.

See here and here.

If the return value is being intentionally ignored, it could be cast to void with (void) to indicate that.

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)

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)

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.