- Timestamp:
- Jul 1, 2014 8:18:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/base64.cpp
r51770 r51787 234 234 uint8_t u8; 235 235 unsigned c6Bits = 0; 236 unsigned ch;237 236 AssertCompile(sizeof(char) == sizeof(uint8_t)); 238 237 … … 240 239 { 241 240 /* 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) 243 242 pszString++, cchStringMax--; 244 243 if (u8 >= 64) … … 252 251 253 252 /* 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) 255 254 pszString++, cchStringMax--; 256 255 if (u8 >= 64) … … 266 265 /* The third 6-bit group. */ 267 266 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) 269 268 pszString++, cchStringMax--; 270 269 if (u8 >= 64) … … 280 279 /* The fourth 6-bit group. */ 281 280 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) 283 282 pszString++, cchStringMax--; 284 283 if (u8 >= 64) … … 308 307 if (u8 == BASE64_PAD) 309 308 { 309 unsigned ch; 310 310 cbPad = 1; 311 311 pszString++; … … 332 332 */ 333 333 if ( u8 == BASE64_INVALID 334 && !ppszEnd 335 && ch) 334 && !ppszEnd) 336 335 return VERR_INVALID_BASE64_ENCODING; 337 336
Note:
See TracChangeset
for help on using the changeset viewer.