summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-yaml.c
Commit message (Collapse)AuthorAgeFilesLines
* Use the SPDX-License-Identifier in all source filesRichard Hughes2019-02-091-15/+1
|
* trivial: Do not use deprecated API internallyRichard Hughes2018-05-211-2/+2
|
* Fix compile with -Wdiscarded-qualifiersRichard Hughes2017-03-151-1/+1
| | | | Some distros helpfully force this on for some reason.
* trivial: Add some asserts to shut up clangRichard Hughes2016-12-151-0/+2
|
* Add support for ONLY_NATIVE_LANGS when parsing yaml filesRichard Hughes2016-11-211-18/+68
| | | | This saves ~20Mb of RSS on a typical desktop Debian install.
* Detect invalid files in the libyaml read handlerRichard Hughes2016-11-181-6/+8
| | | | | | | | | | | | | 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.
* trivial: Fix a couple of warnings with -WundefRichard Hughes2016-09-281-4/+4
|
* trivial: Use correct autoptr cleanup on yaml error when loading from a file. ↵Mario Limonciello2016-08-221-1/+1
| | | | (#133)
* trivial: Fix several -Wsign-conversion issues on ARMRichard Hughes2016-08-221-1/+1
|
* Don't use the prefix check when parsing YAMLRichard Hughes2016-08-211-15/+0
| | | | | We don't do this for the from_file() version, and we can reliably depend on libyaml for error checking now.
* trivial: Use the correct autoptr cleanup on yaml errorRichard Hughes2016-08-211-1/+1
|
* Return proper warnings when using libyamlRichard Hughes2016-08-181-15/+151
|
* Pay attention to errors from yaml_parser_parse (#129)Anders Kaseorg2016-08-171-2/+1
| | | | | | | | | | | | 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>
* Sanity check YAML files before parsingRichard Hughes2016-08-171-0/+15
| | | | | | | | | | 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.
* Add two new GCC warnings and fix up signed/unsigned issuesRichard Hughes2016-07-251-8/+33
|
* trivial: Get rid of useless internal-only gtk-doc markupRichard Hughes2016-06-281-39/+0
|
* Use the typedef'd name in the code to help readabilityRichard Hughes2015-09-141-15/+15
| | | | Should be no code, API or ABI changes.
* trivial: Drop as-cleanup.h include where not neededKalev Lember2015-09-081-1/+0
|
* Use GLib's cleanup functions instead of libgsystem'sKalev Lember2015-09-081-5/+5
| | | | | | | 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.
* trivial: Remove a build warning when building without DEP-11 supportRichard Hughes2014-08-281-15/+15
|
* trivial: Use the correct project prefixRichard Hughes2014-08-201-5/+5
|
* Use libyaml to read DEP-11 metadataRichard Hughes2014-08-201-0/+381
This is optional, but enabled by default. Use --disable-dep11 to remove the libyaml dependancy.