I thought I pushed this

This commit is contained in:
2024-06-20 16:05:19 +02:00
parent 5e23cc8f58
commit 286416447c
+2
View File
@@ -860,6 +860,8 @@ read_next_frame :: proc(r: ^Reader, flac: ^Flac, allocator := context.allocator)
tee_r: io.Tee_Reader tee_r: io.Tee_Reader
crc_buffer: Buffer 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) buffer_init_allocator(&crc_buffer, 0, 128, context.temp_allocator)
crc := buffer_to_stream(&crc_buffer) crc := buffer_to_stream(&crc_buffer)