Skip to content
Myr

stb_vorbis: fix bug in computing end of temp alloc buffer if it's not a multiple of 8

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent 3152efa · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:stb_vorbis.c+1 added-1 removed
4255 unmodified lines
4256{4257 memset(p, 0, sizeof(*p)); // NULL out all malloc'd pointers to start4258 if (z) {4259 p->alloc = *z;4260 p->alloc.alloc_buffer_length_in_bytes = (p->alloc.alloc_buffer_length_in_bytes+3) & ~3;4260 p->alloc.alloc_buffer_length_in_bytes &= ~7;4261 p->temp_offset = p->alloc.alloc_buffer_length_in_bytes;4262 }4263 p->eof = 0;4264 p->error = VORBIS__no_error;
1295 unmodified lines