Changeset 54356 in vbox
- Timestamp:
- Feb 22, 2015 5:33:38 PM (10 years ago)
- Location:
- trunk/src/VBox/Runtime/common/asn1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/asn1/asn1-ut-bitstring.cpp
r51770 r54356 78 78 RTASN1BITSTRINGWRITERCTX *pCtx = (RTASN1BITSTRINGWRITERCTX *)pvUser; 79 79 AssertReturn(cbToWrite <= pCtx->cbBuf - pCtx->offBuf, VERR_BUFFER_OVERFLOW); 80 if ( !memcmp(&pCtx->pbBuf[pCtx->offBuf], pvBuf, cbToWrite) != 0)80 if (memcmp(&pCtx->pbBuf[pCtx->offBuf], pvBuf, cbToWrite) != 0) 81 81 return VERR_NOT_EQUAL; 82 82 pCtx->offBuf += (uint32_t)cbToWrite; -
trunk/src/VBox/Runtime/common/asn1/asn1-ut-octetstring.cpp
r51770 r54356 78 78 RTASN1OCTETSTRINGWRITERCTX *pCtx = (RTASN1OCTETSTRINGWRITERCTX *)pvUser; 79 79 AssertReturn(cbToWrite <= pCtx->cbBuf - pCtx->offBuf, VERR_BUFFER_OVERFLOW); 80 if ( !memcmp(&pCtx->pbBuf[pCtx->offBuf], pvBuf, cbToWrite) != 0)80 if (memcmp(&pCtx->pbBuf[pCtx->offBuf], pvBuf, cbToWrite) != 0) 81 81 return VERR_NOT_EQUAL; 82 82 pCtx->offBuf += (uint32_t)cbToWrite;
Note:
See TracChangeset
for help on using the changeset viewer.