asahi: decode: Do not assert on buffer overruns
authorAsahi Lina <lina@asahilina.net>
Wed, 16 Aug 2023 12:36:43 +0000 (21:36 +0900)
committerMarge Bot <emma+marge@anholt.net>
Tue, 5 Sep 2023 18:50:34 +0000 (18:50 +0000)
commit0424017e7267106bde773b1e5516c5d9c4a8f84b
tree06afef25e324f2c02f98d50ea36c298d047bf57b
parentacd5ed0451d64666dbeeddbff02aa913619a04c5
asahi: decode: Do not assert on buffer overruns

This kills the hypervisor, let's just print and return.

Also flush after decoding, so that if something else goes wrong at least
we get the logs up to that point.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25052>
src/asahi/lib/decode.c