VirtualBox

Changeset 84274 in vbox


Ignore:
Timestamp:
May 12, 2020 4:37:49 PM (4 years ago)
Author:
vboxsync
Message:

IPRT/Base64: Allow the end-of-line style to be specified via the fFlags parameter when encoding. ?[added assertion] bugref:9699

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/base64.cpp

    r84273 r84274  
    507507    char const      chEol0 = g_aachEolStyles[fFlags & RTBASE64_FLAGS_EOL_STYLE_MASK][0];
    508508    char const      chEol1 = g_aachEolStyles[fFlags & RTBASE64_FLAGS_EOL_STYLE_MASK][1];
     509    Assert(cchEol == (chEol0 != '\0' ? 1U : 0U) + (chEol1 != '\0' ? 1U : 0U));
    509510
    510511    /*
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