VirtualBox

Changeset 87434 in vbox


Ignore:
Timestamp:
Jan 26, 2021 3:41:54 PM (4 years ago)
Author:
vboxsync
Message:

Main: bugref:9224: Fixed invalid size of receiving buffer in the com::Bstr::base64Encode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/string-base64.cpp

    r84339 r87434  
    3232    if (SUCCEEDED(hrc))
    3333    {
    34         int vrc = RTBase64EncodeUtf16Ex(pvData, cbData, fFlags, mutableRaw(), cwcEncoded, &cwcEncoded);
     34        int vrc = RTBase64EncodeUtf16Ex(pvData, cbData, fFlags, mutableRaw(), cwcEncoded + 1, &cwcEncoded);
    3535        AssertRCReturnStmt(vrc, setNull(), E_FAIL);
    3636        hrc = joltNoThrow(cwcEncoded);
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