mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
Previously, decompress_bytes dropped the LoggedResult from decoding, returning void. In bootimg.cpp, unpack and split_image_dtb never checked whether decompression succeeded, leaving empty 0-byte output files and returning RETURN_OK (0). Return a boolean status from decompress_bytes and check it during unpack and split_image_dtb. On decompression failure, remove any incomplete output files and return RETURN_ERROR (1). Assisted-by: Gemini 3.8 Flash