VirtualBox

Changeset 64887 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Dec 15, 2016 3:58:02 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
112294
Message:

IPRT/ASN.1: Refactored array handling (SET OF, SEQUENCE OF) to use a pointer array instead of an object instance array. The old approach would move objects around in memory after they'd be initialized/decoded, making certain core optimziations involving pointers to object members impossible, as well as causing potentially causing trouble when modifying structures that takes down pointers after decoding. Fixed validation bug in rtCrX509Name_CheckSanityExtra where it didn't check that the RDNs had subitems but instead checked the parent twice (slight risk).

File:
1 edited

Legend:

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

    r64883 r64887  
    273273 * @param   pAllocation The array allocation record (initialized by
    274274 *                      RTAsn1CursorInitArrayAllocation or similar).
    275  * @param   pv          The memory block to free.  NULL will be ignored.
     275 * @param   papvArray   The array to free.  NULL is ignored.
    276276 */
    277277RTDECL(void) RTAsn1MemFreeArray(PRTASN1ARRAYALLOCATION pAllocation, void **papvArray);
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