| Index: nspr/pr/src/misc/prinit.c
|
| diff --git a/nspr/pr/src/misc/prinit.c b/nspr/pr/src/misc/prinit.c
|
| index 5eda4a2aaba6ef751208dab0cbc03bdabc7cac59..43048a0d2da03745c0e8256678e76a7b9125e130 100644
|
| --- a/nspr/pr/src/misc/prinit.c
|
| +++ b/nspr/pr/src/misc/prinit.c
|
| @@ -642,7 +642,10 @@ PR_IMPLEMENT(PRFileDesc *) PR_GetInheritedFD(
|
| while (1) {
|
| if ((ptr[len] == ':') && (strncmp(ptr, name, len) == 0)) {
|
| ptr += len + 1;
|
| - PR_sscanf(ptr, "%d:0x%" PR_SCNxOSFD, &fileType, &osfd);
|
| + if (PR_sscanf(ptr, "%d:0x%" PR_SCNxOSFD, &fileType, &osfd) != 2) {
|
| + PR_SetError(PR_UNKNOWN_ERROR, 0);
|
| + return NULL;
|
| + }
|
| switch ((PRDescType)fileType) {
|
| case PR_DESC_FILE:
|
| fd = PR_ImportFile(osfd);
|
|
|