mirror of
https://github.com/team-charls/charls
synced 2025-03-28 21:03:13 +00:00
Read beyond buffer end (found by Kato)
This commit is contained in:
parent
fbca0ac66c
commit
faa77d7f9e
2
scan.h
2
scan.h
@ -788,7 +788,7 @@ size_t JlsCodec<TRAITS,STRATEGY>::DecodeScan(void* pvoidOut, const Size& size, L
|
||||
_size = size;
|
||||
_components = components;
|
||||
|
||||
DoScan(const_cast<PIXEL*>(ptypeOut), pbyteCompressed + cbyteRead, (LONG)cbyte);
|
||||
DoScan(const_cast<PIXEL*>(ptypeOut), pbyteCompressed + cbyteRead, cbyte - cbyteRead);
|
||||
|
||||
return STRATEGY::GetCurBytePos() - pbyteCompressed;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user