VirtualBox

Ignore:
Timestamp:
Sep 26, 2022 9:25:03 AM (2 years ago)
Author:
vboxsync
Message:

IPRT/RTCrDigestFinal: Corrected underflow (warning) / overflow (error) mixup. bugref:10287

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/digest-core.cpp

    r96407 r96858  
    320320        if (cbNeeded == cbHash)
    321321            memcpy(pvHash, &pThis->abState[pThis->offHash], cbNeeded);
    322         else if (cbNeeded > cbHash)
     322        else if (cbNeeded < cbHash)
    323323        {
    324324            memcpy(pvHash, &pThis->abState[pThis->offHash], cbNeeded);
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