VirtualBox

Changeset 52533 in vbox for trunk/include


Ignore:
Timestamp:
Aug 29, 2014 10:51:39 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95788
Message:

ASN.1 decoding: limit nesting.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asn1.h

    r51999 r52533  
    14951495    uint32_t                    cbLeft;
    14961496    /** RTASN1CURSOR_FLAGS_XXX.  */
    1497     uint32_t                    fFlags;
     1497    uint8_t                     fFlags;
     1498    /** The cursor depth. */
     1499    uint8_t                     cDepth;
     1500    /** Two bytes reserved for future tricks. */
     1501    uint8_t                     abReserved[2];
    14981502    /** Pointer to the primary cursor. */
    14991503    struct RTASN1CURSORPRIMARY *pPrimary;
     
    15511555 * Initialize a sub-cursor for traversing the content of an ASN.1 object.
    15521556 *
    1553  * @returns @a pChild
     1557 * @returns IPRT status code.
    15541558 * @param   pParent             The parent cursor.
    15551559 * @param   pAsn1Core           The ASN.1 object which content we should
     
    15581562 * @param   pszErrorTag         The error tag of the sub-cursor.
    15591563 */
    1560 RTDECL(PRTASN1CURSOR) RTAsn1CursorInitSubFromCore(PRTASN1CURSOR pParent, PRTASN1CORE pAsn1Core,
    1561                                                   PRTASN1CURSOR pChild, const char *pszErrorTag);
     1564RTDECL(int) RTAsn1CursorInitSubFromCore(PRTASN1CURSOR pParent, PRTASN1CORE pAsn1Core,
     1565                                        PRTASN1CURSOR pChild, const char *pszErrorTag);
    15621566
    15631567/**
  • trunk/include/iprt/err.h

    r52213 r52533  
    20822082/** Expected valid data pointer for ASN.1 object. */
    20832083#define VERR_ASN1_INVALID_DATA_POINTER              (-22854)
     2084/** The ASN.1 encoding is too deeply nested for the decoder. */
     2085#define VERR_ASN1_TOO_DEEPLY_NESTED                 (-22855)
    20842086
    20852087/** ANS.1 internal error 1. */
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