VirtualBox

Changeset 51787 in vbox for trunk/src


Ignore:
Timestamp:
Jul 1, 2014 8:18:21 PM (11 years ago)
Author:
vboxsync
Message:

bugfix

File:
1 edited

Legend:

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

    r51770 r51787  
    234234    uint8_t     u8;
    235235    unsigned    c6Bits    = 0;
    236     unsigned    ch;
    237236    AssertCompile(sizeof(char) == sizeof(uint8_t));
    238237
     
    240239    {
    241240        /* The first 6-bit group. */
    242         while ((u8 = cchStringMax > 0 ? g_au8CharToVal[ch = *pszString] : BASE64_INVALID) == BASE64_SPACE)
     241        while ((u8 = cchStringMax > 0 ? g_au8CharToVal[*pszString] : BASE64_INVALID) == BASE64_SPACE)
    243242            pszString++, cchStringMax--;
    244243        if (u8 >= 64)
     
    252251
    253252        /* The second 6-bit group. */
    254         while ((u8 = cchStringMax > 0 ? g_au8CharToVal[ch = *pszString] : BASE64_INVALID) == BASE64_SPACE)
     253        while ((u8 = cchStringMax > 0 ? g_au8CharToVal[*pszString] : BASE64_INVALID) == BASE64_SPACE)
    255254            pszString++, cchStringMax--;
    256255        if (u8 >= 64)
     
    266265        /* The third 6-bit group. */
    267266        u8 = BASE64_INVALID;
    268         while ((u8 = cchStringMax > 0 ? g_au8CharToVal[ch = *pszString] : BASE64_INVALID) == BASE64_SPACE)
     267        while ((u8 = cchStringMax > 0 ? g_au8CharToVal[*pszString] : BASE64_INVALID) == BASE64_SPACE)
    269268            pszString++, cchStringMax--;
    270269        if (u8 >= 64)
     
    280279        /* The fourth 6-bit group. */
    281280        u8 = BASE64_INVALID;
    282         while ((u8 = cchStringMax > 0 ? g_au8CharToVal[ch = *pszString] : BASE64_INVALID) == BASE64_SPACE)
     281        while ((u8 = cchStringMax > 0 ? g_au8CharToVal[*pszString] : BASE64_INVALID) == BASE64_SPACE)
    283282            pszString++, cchStringMax--;
    284283        if (u8 >= 64)
     
    308307    if (u8 == BASE64_PAD)
    309308    {
     309        unsigned ch;
    310310        cbPad = 1;
    311311        pszString++;
     
    332332     */
    333333    if (    u8 == BASE64_INVALID
    334         &&  !ppszEnd
    335         &&  ch)
     334        &&  !ppszEnd)
    336335        return VERR_INVALID_BASE64_ENCODING;
    337336
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