| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
Some distros helpfully force this on for some reason.
|
| |
|
|
|
|
| |
This saves ~20Mb of RSS on a typical desktop Debian install.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 https://github.com/hughsie/fwupd/issues/70
and similar bugs in gnome-software.
|
| |
|
|
|
|
| |
(#133)
|
| |
|
|
|
|
|
| |
We don't do this for the from_file() version, and we can reliably depend on
libyaml for error checking now.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous commit message blames libyaml for spinning forever on
invalid input. This is not the case. libyaml is correctly returning
an error code, but as_node_yaml_process_layer was ignoring it and
spinning forever calling back into libyaml as if expecting the error
to disappear by itself.
The code should probably be audited for other ignored error codes, but
this fixes the immediate problem.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
|
|
|
|
|
|
|
|
|
|
| |
It seems as_node_yaml_process_layer() just spins if you pass it data with an
invalid header. If we can't trust libyaml, try to check the first line and
return an error if it doesn't match what we expect.
Works around https://bugs.launchpad.net/ubuntu/+source/fwupd/+bug/1591868
although the real bugs lie both in libyaml for spinning forever on invalid
input, *and* whatever project wrote that invalid DEP-11 file.
|
| |
|
| |
|
|
|
|
| |
Should be no code, API or ABI changes.
|
| |
|
|
|
|
|
|
|
| |
We still have a few types that don't support g_autoptr(), but very very
close to having everything ported over.
This also bumps gdk-pixbuf dep to 2.31.5 for the cleanup macro support.
|
| |
|
| |
|
|
This is optional, but enabled by default. Use --disable-dep11 to remove the
libyaml dependancy.
|