gresource: Fix potential array overflow if using empty pathsab87af17340ff56a2000f0704c15f2dc4c98ed72150/head
commitab87af17340ff56a2000f0704c15f2dc4c98ed72
authorPhilip Withnall <withnall@endlessm.com>
Thu, 5 Jul 2018 11:01:48 +0000 (5 12:01 +0100)
committerPhilip Withnall <withnall@endlessm.com>
Thu, 5 Jul 2018 11:03:10 +0000 (5 12:03 +0100)
tree690a4201fc99781a5424dadfdb78971ce8d8a095
parentf62d7c1e2a38006a6ad1d735135f222ce5ceb726
gresource: Fix potential array overflow if using empty paths

Adds tests to cover this case and similar cases for various GResource
methods in future.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.gnome.org/GNOME/glib/issues/927
gio/gresource.c
gio/tests/resources.c