From 286416447cfe35a0ae91fac07aaa6672a8e3d123 Mon Sep 17 00:00:00 2001 From: IllusionMan1212 Date: Thu, 20 Jun 2024 16:05:19 +0200 Subject: [PATCH] I thought I pushed this --- flac.odin | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flac.odin b/flac.odin index eebf985..13f5120 100644 --- a/flac.odin +++ b/flac.odin @@ -860,6 +860,8 @@ read_next_frame :: proc(r: ^Reader, flac: ^Flac, allocator := context.allocator) tee_r: io.Tee_Reader crc_buffer: Buffer + // NOTE: using the default heap allocator here causes a use-after-free bug on files subset/05, subset/06, and subset/25 + // No idea what the cause of the bug is. buffer_init_allocator(&crc_buffer, 0, 128, context.temp_allocator) crc := buffer_to_stream(&crc_buffer)