mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 22:23:07 +00:00
Fix crash in stb_vorbis.c
This commit is contained in:
parent
092a1cfb39
commit
d259094c3a
1
thirdparty/README.md
vendored
1
thirdparty/README.md
vendored
@ -423,6 +423,7 @@ Collection of single-file libraries used in Godot components.
|
||||
* Upstream: https://github.com/nothings/stb
|
||||
* Version: 1.19
|
||||
* 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
|
||||
|
2
thirdparty/misc/stb_vorbis.c
vendored
2
thirdparty/misc/stb_vorbis.c
vendored
@ -961,7 +961,7 @@ static void *setup_temp_malloc(vorb *f, int sz)
|
||||
static void setup_temp_free(vorb *f, void *p, int sz)
|
||||
{
|
||||
if (f->alloc.alloc_buffer) {
|
||||
f->temp_offset += (sz+3)&~3;
|
||||
f->temp_offset += (sz+7)&~7;
|
||||
return;
|
||||
}
|
||||
free(p);
|
||||
|
Loading…
Reference in New Issue
Block a user