VirtualBox

Changeset 39817 in vbox for trunk/src/libs/xpcom18a4/nsprpub


Ignore:
Timestamp:
Jan 20, 2012 12:51:58 PM (13 years ago)
Author:
vboxsync
Message:

PR_GetInheritedFD: Potential read access beyond the end of the string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/nsprpub/pr/src/misc/prinit.c

    r38636 r39817  
    681681    ptr = envVar;
    682682    while (1) {
    683         if ((ptr[len] == ':') && (strncmp(ptr, name, len) == 0)) {
     683        if ((strncmp(ptr, name, len) == 0) && (ptr[len] == ':')) {
    684684            ptr += len + 1;
    685685            PR_sscanf(ptr, "%d:0x%lx", &fileType, &osfd);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette