Created
April 22, 2020 09:59
-
-
Save kyprizel/b8e3d1df85d093404ea1dff5b79895d0 to your computer and use it in GitHub Desktop.
CVE-2019-16535 medum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UInt32 ICompressionCodec::decompress(const char * source, UInt32 source_size, char * dest) const | |
| { | |
| UInt8 method = source[0]; | |
| if (method != getMethodByte()) | |
| throw Exception("Can't decompress data with codec byte " + toString(method) + " from codec with byte " + toString(method), ErrorCodes::CANNOT_DECOMPRESS); | |
| UInt8 header_size = getHeaderSize(); | |
| UInt32 decompressed_size = unalignedLoad<UInt32>(&source[5]); | |
| doDecompressData(&source[header_size], source_size - header_size, dest, decompressed_size); | |
| return decompressed_size; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment