ConorStokes / LZSSE

LZ77/LZSS designed for SSE based decompression
BSD 2-Clause "Simplified" License
134 stars 16 forks source link

Make sure we don't overflow size_t when allocating the parser. #9

Closed nemequ closed 7 years ago

nemequ commented 7 years ago

This is unlikely to occur (though technically possible) with 64-bit pointers, but on platforms with a 32-bit pointers such as x32 it's a very real possibility. This would lead to silently allocating less space than the code assumes, eventually leading to accessing invalid memory.

ConorStokes commented 7 years ago

Thanks for the changes.