Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
d259094c
Commit
d259094c
authored
May 03, 2020
by
Pedro J. Estébanez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash in stb_vorbis.c
parent
092a1cfb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
README.md
thirdparty/README.md
+1
-0
stb_vorbis.c
thirdparty/misc/stb_vorbis.c
+1
-1
No files found.
thirdparty/README.md
View file @
d259094c
...
@@ -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
...
...
thirdparty/misc/stb_vorbis.c
View file @
d259094c
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment