summaryrefslogtreecommitdiff
path: root/libavcodec/mlz.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace all occurences of av_mallocz_array() by av_calloc()Andreas Rheinhardt2021-09-201-1/+1
| | | | | | | They do the same. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* mlz: limit next_code to data buffer sizeAndreas Cadhalpun2016-11-151-0/+8
| | | | | | | This fixes a heap-buffer-overflow detected by AddressSanitizer. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avcodec/mlz: Check output chars before using itMichael Niedermayer2016-09-211-3/+18
| | | | | | Fixes hypothetical integer overflow Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mlz: Check offset before writingMichael Niedermayer2016-09-081-0/+4
| | | | | | | | Fixes: 0cee183a09bff5aa5108429717c35a4d/asan_heap-oob_1d99eca_3702_9ef60e80de79082a778d3d9ce8ef3b64.mp4 Affects no release Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mlz: clear dict on allocation to ensure there are no uninitialized ↵Michael Niedermayer2016-09-081-1/+1
| | | | | | values Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec: Implement masked lz decompressionUmair Khan2016-08-221-0/+173
Signed-off-by: Umair Khan <omerjerk@gmail.com>