glib/gio/xdgmime
Philip Withnall 3e68debb13
xdgmime: Add assertion to silence static analysis false positive
After a lot of loop unwinding, during which I think it might have lost
its knowledge that `cache->buffer != NULL` (from a prior check on line
765), scan-build seems to think that there can be a `NULL` pointer
dereference of `cache->buffer` within `cache_magic_compare_to_data()`.
There can’t be. Add an assertion to try and help the analyser.

Upstreamed as
https://gitlab.freedesktop.org/xdg/xdgmime/-/merge_requests/38.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #1767
2024-04-25 23:16:08 +01:00
..
.gitignore gio/ docs/reference/gio Merged gio-standalone into glib. 2007-11-26 16:13:05 +00:00
meson.build Fix symbol visibility macros on Windows 2022-10-13 20:53:56 -04:00
xdgmime.c xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00
xdgmime.h xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00
xdgmimealias.c xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00
xdgmimealias.h xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00
xdgmimecache.c xdgmime: Add assertion to silence static analysis false positive 2024-04-25 23:16:08 +01:00
xdgmimecache.h xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00
xdgmimeglob.c xdgmimeglob: Fix a memory leak on a duplicate-entry path 2024-04-12 18:45:52 +01:00
xdgmimeglob.h xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00
xdgmimeicon.c xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00
xdgmimeicon.h xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00
xdgmimeint.c xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00
xdgmimeint.h xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00
xdgmimemagic.c xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00
xdgmimemagic.h xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00
xdgmimeparent.c xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00
xdgmimeparent.h xdgmime: Update to upstream commit c2c814d4051f232 2023-12-04 13:13:13 +00:00