We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce511c commit dfc9bc2Copy full SHA for dfc9bc2
src/common/networking/networking_common.c
@@ -43,7 +43,7 @@ static uint32_t guessGzipOutputSize(const void* data, uint32_t dataSize)
43
if (dataSize > 18) {
44
// Get ISIZE value from the end of file (little endian)
45
const uint8_t* tail = (const uint8_t*)data + dataSize - 4;
46
- uint32_t uncompressedSize = tail[0] | (tail[1] << 8) | (tail[2] << 16) | (tail[3] << 24);
+ uint32_t uncompressedSize = (uint32_t) tail[0] | ((uint32_t) tail[1] << 8u) | ((uint32_t) tail[2] << 16u) | ((uint32_t) tail[3] << 24u);
47
48
// For valid gzip files, this value is the length of the uncompressed data modulo 2^32
49
if (uncompressedSize > 0) {
0 commit comments