• A
    imgcodecs(webp): multiple fixes · 0515f930
    Alexander Alekhin 提交于
    - don't reallocate passed 'img' (test fixed - must use IMREAD_UNCHANGED / IMREAD_ANYCOLOR)
    - avoid memory DDOS
    - avoid reading of whole file during header processing
    - avoid data access after allocated buffer during header processing (missing checks)
    - use WebPFree() to free allocated buffers (libwebp >= 0.5.0)
    - drop unused & undefined `.close()` method
    - added checks for channels >= 5 in encoder
    0515f930
grfmt_webp.cpp 8.9 KB