const std = @import("std"); const warn = std.debug.warn; pub fn main() anyerror!void { const allocator = std.heap.c_allocator; var b: []u8 = undefined; { b = try allocator.alloc(u8, 2); std.mem.set(u8, b, 0); defer allocator.free(b); } warn("uaf: {x} {x:0>2} {x:0>2}\n",.{&b, b[0],b[1]}); }