VirtualBox

Ignore:
Timestamp:
Feb 15, 2016 10:39:32 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105532
Message:

RTAsn1BitString_EncodeWrite: Fixed assertion. Added testcase which triggers it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/asn1/asn1-ut-bitstring.cpp

    r59663 r59675  
    267267    PRTASN1BITSTRING pThis = (PRTASN1BITSTRING)pThisCore;
    268268
    269     AssertReturn(RT_ALIGN(pThis->cBits, 7) / 8 + 1 == pThis->Asn1Core.cb, VERR_INTERNAL_ERROR_3);
     269    AssertReturn(RT_ALIGN(pThis->cBits, 8) / 8 + 1 == pThis->Asn1Core.cb, VERR_INTERNAL_ERROR_3);
    270270
    271271    /*
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