mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 14:34:33 +02:00
VP8[L]GetInfo: check input pointers
validate data before using & width/height before assigning. Change-Id: I0872e80fcbfea295d7c633b0d4cb7809e1d1883b
This commit is contained in:
@ -84,7 +84,7 @@ int VP8SetError(VP8Decoder* const dec,
|
||||
|
||||
int VP8GetInfo(const uint8_t* data, size_t data_size, size_t chunk_size,
|
||||
int* width, int* height) {
|
||||
if (data_size < 10) {
|
||||
if (data == NULL || data_size < VP8_FRAME_HEADER_SIZE) {
|
||||
return 0; // not enough data
|
||||
}
|
||||
// check signature
|
||||
|
Reference in New Issue
Block a user