VirtualBox

Ignore:
Timestamp:
Aug 29, 2014 10:51:39 PM (10 years ago)
Author:
vboxsync
Message:

ASN.1 decoding: limit nesting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/spc-asn1-decoder.cpp

    r51770 r52533  
    5858            pThis->enmType = RTCRSPCSERIALIZEDOBJECTTYPE_ATTRIBUTES;
    5959
    60             RTAsn1CursorInitSubFromCore(pCursor, &pThis->SerializedData.Asn1Core, &SubCursor, "SerializedData");
    61             rc = RTCrSpcSerializedObjectAttributes_DecodeAsn1(&SubCursor, 0, pThis->u.pData, "SD");
     60            rc = RTAsn1CursorInitSubFromCore(pCursor, &pThis->SerializedData.Asn1Core, &SubCursor, "SerializedData");
     61            if (RT_SUCCESS(rc))
     62                rc = RTCrSpcSerializedObjectAttributes_DecodeAsn1(&SubCursor, 0, pThis->u.pData, "SD");
    6263        }
    6364    }
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