mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
bug 341008 Fix sscanf error checking
r=mvl sr=darin a=darin
This commit is contained in:
parent
0ce991da3a
commit
5b2acd0545
@ -700,7 +700,7 @@ nsPermissionManager::Read()
|
||||
}
|
||||
|
||||
PRUint32 type;
|
||||
if (!PR_sscanf(buffer.get() + 1, "%u", &type) || type >= NUMBER_OF_TYPES) {
|
||||
if (PR_sscanf(buffer.get() + 1, "%u", &type) != 1 || type >= NUMBER_OF_TYPES) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user