Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect invalid files in the libyaml read handler
If non-gzipped files are saved as .yml.gz they are seeked by the GInputStream GZlibDecompressor which fails. This can happen when the user is connected to a badly configured captive portal and the downloaded 'gzipped yaml file' is actually the captive portal HTML login page. Detect this and handle the error the best we can given the libyaml API constraints. This probably fixes bugs like fwupd/fwupd#70 and similar bugs in gnome-software.
- Loading branch information