dwarf: do not crash on unsupported codes; text: do not crash on arena releasing w/ zero hash (#766, #771?, #761)

This commit is contained in:
Ryan Fleury
2026-04-30 17:51:11 -07:00
parent c83c1f3cfd
commit 0e2b37ba32
4 changed files with 47 additions and 33 deletions
+1 -1
View File
@@ -2923,7 +2923,7 @@ txt_artifact_create(String8 key, B32 *cancel_signal, B32 *retry_out, U64 *gen_ou
}
//- rjf: cancel -> release
if(lane_idx() == 0 && ins_atomic_u32_eval(cancel_signal))
if(lane_idx() == 0 && ins_atomic_u32_eval(cancel_signal) && shared->arena != 0)
{
arena_release(shared->arena);
shared->arena = 0;