Commit d259094c by Pedro J. Estébanez

Fix crash in stb_vorbis.c

parent 092a1cfb
...@@ -423,6 +423,7 @@ Collection of single-file libraries used in Godot components. ...@@ -423,6 +423,7 @@ Collection of single-file libraries used in Godot components.
* Upstream: https://github.com/nothings/stb * Upstream: https://github.com/nothings/stb
* Version: 1.19 * Version: 1.19
* License: Public Domain (Unlicense) or MIT * License: Public Domain (Unlicense) or MIT
* Modifications: `f->temp_offset += (sz+3)&~3;` changed to `f->temp_offset += (sz+7)&~7;` (needed until fixed upstream)
## nanosvg ## nanosvg
......
...@@ -961,7 +961,7 @@ static void *setup_temp_malloc(vorb *f, int sz) ...@@ -961,7 +961,7 @@ static void *setup_temp_malloc(vorb *f, int sz)
static void setup_temp_free(vorb *f, void *p, int sz) static void setup_temp_free(vorb *f, void *p, int sz)
{ {
if (f->alloc.alloc_buffer) { if (f->alloc.alloc_buffer) {
f->temp_offset += (sz+3)&~3; f->temp_offset += (sz+7)&~7;
return; return;
} }
free(p); free(p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment