VirtualBox

Changeset 74112 in vbox for trunk


Ignore:
Timestamp:
Sep 6, 2018 11:42:42 AM (6 years ago)
Author:
vboxsync
Message:

IPRt/RTHttpSignHeaders: Fix for incompletely initialized header structure. bugref:9167

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/http-curl.cpp

    r74094 r74112  
    23162316    uint8_t * const pbSigRaw = (uint8_t *)pHdr + cbEstimated - cbSigRawAligned;
    23172317
    2318     pHdr->cchName  = sizeof("Authorization") - 1;
    2319     pHdr->offValue = sizeof("Authorization") + 1;
    2320     char  *pszLeft = pHdr->szData;
    2321     size_t cbLeft  = cbEstimated - RT_UOFFSETOF(RTHTTPHEADER, szData) - cbSigRawAligned;
     2318    pHdr->cchName   = sizeof("Authorization") - 1;
     2319    pHdr->offValue  = sizeof("Authorization") + 1;
     2320    pHdr->Core.next = NULL;
     2321    pHdr->Core.data = pHdr->szData;
     2322    char  *pszLeft  = pHdr->szData;
     2323    size_t cbLeft   = cbEstimated - RT_UOFFSETOF(RTHTTPHEADER, szData) - cbSigRawAligned;
    23222324
    23232325    size_t cch = RTStrPrintf(pszLeft, cbLeft, s_szSuffixFmt, pszKeyId);
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