szn

Bug 12 — Dangling pointer in Context.set()

12. Dangling pointer in Context.set()

File: src/format.zig:26–35 Status: ✅ FIXED — dupe new value before freeing old value.

Frees the old value FIRST (allocator.free(entry.value_ptr.*)), then duplicates the new one. If dupe fails, the map entry holds a dangling pointer to freed memory.