Sean Barrett
14e6a98469
clarify alloca #include whitelists
ago%!(EXTRA string=9 years)
Sean Barrett
f4938bfa4d
Whitelist the compilers that need malloc.h for alloca
ago%!(EXTRA string=9 years)
Sean Barrett
4c519106a7
back out previous change to stb_vorbis (truncation of last frame in corrupt file)
ago%!(EXTRA string=9 years)
Sean Barrett
6e4154737c
update version numbers, documentation, and contributors
ago%!(EXTRA string=9 years)
Sean Barrett
b03133000a
avoid dropping final frame of audio data due to wrong test
ago%!(EXTRA string=9 years)
Sean Barrett
92bd7a49a8
emscripten needs explicit alloca as well
ago%!(EXTRA string=9 years)
Sean Barrett
75c5908f95
fix includes for linux alloca
ago%!(EXTRA string=9 years)
Jörn Heusipp
aeba55604a
stb_vorbis: Fix memory leak in start_decoder().
ago%!(EXTRA string=9 years)
Jörn Heusipp
0e3506d7d1
stb_vorbis: Fix memory leak in start_decoder().
ago%!(EXTRA string=9 years)
Jörn Heusipp
0985e89335
stb_vorbis: Fix memory leak in decode_residue() and inverse_mdct() when redefining temp_alloc() and temp_free()
...
temp_alloc() and temp_free() are documented as customization points in section "MEMORY ALLOCATION" (stb_vorbis.c:81).
However, in decode_residue() and inverse_mdct() (via temp_block_array() and temp_alloc() respectively), stb_vorbis allocates temporary memory but does not call temp_free() when finished. It does call temp_alloc_restore() though, but there is no sane way to provide an implementation thereof when using a malloc()/free()-like allocation backend.
Adding calls to temp_free() before the respective calls to temp_alloc_restore() is safe, because in case of a non-empty temp_alloc_restore() implementation, temp_free() would simply be implemented empty (the current implementation of temp_*() is fine in this regard). That way, all possible temporary memory allocation schemes (i.e. alloca(), custom provided alloc_buffer, malloc()) are handled properly.
Add the appropriate temp_free() calls.
ago%!(EXTRA string=9 years)
Thiago Goulart
5a00ce39eb
Fix a few warnings when building std_vorbis using Xcode 7.2.1
ago%!(EXTRA string=9 years)
Craig Donner
ee6978cb68
Slightly modify the public domain license to keep it in the public domain, but make it clear that even when dedications might not be recognized that the code is still usable. Given that this isn't dual-licensing under a different license, I'm hoping this will be acceptable.
ago%!(EXTRA string=9 years)
Craig Donner
49b65c0873
Slightly modify the public domain license to keep it in the public domain, but make it clear that even when dedications might not be recognized that the code is still usable. Given that this isn't dual-licensing under a different license, I'm hoping this will be acceptable.
ago%!(EXTRA string=9 years)
Sean Barrett
79f29bafff
fix previous stb_vorbis check-in that didn't actually compile;
...
make stb_vorbis_alloc* parameter in APIs be const
ago%!(EXTRA string=9 years)
Sean Barrett
3560e553e8
stb_vorbis version history and contributor info
ago%!(EXTRA string=9 years)
Sean Barrett
95e954c822
const correctness for pushdata API;
...
minor tweak to get_samples_interleaved documentation
ago%!(EXTRA string=9 years)
Sean Barrett
0860860af6
avoid __forceinline in mingw since their definition for C is broken;
...
dummy definitions for malloc et al (note you have to modify source to make this work though anyway);
tweak credits change;
ago%!(EXTRA string=9 years)
Sean Barrett
2b57ea95da
fixed version of removed support for CODEBOOK_SHORTS
ago%!(EXTRA string=10 years)
Sean Barrett
fe74a8c223
broken attempt at removign STB_VORBIS_CODEBOOK_FLOAT option
ago%!(EXTRA string=10 years)
Sean Barrett
bc2219e1b3
fix multiple crashes on invalid files
ago%!(EXTRA string=10 years)
Sean Barrett
bdac1d2ab4
fix two crashes in invalid files
ago%!(EXTRA string=10 years)
Sean Barrett
70b33e99f0
fix crash from invalid file
ago%!(EXTRA string=10 years)
Sean Barrett
ea88e59b5d
fix invalid handling of truncated end-of-file indicator
ago%!(EXTRA string=10 years)
Sean Barrett
69a318bdb3
fix two invalid-file crashes found by fuzz testing
ago%!(EXTRA string=10 years)
Sean Barrett
2073403a5f
fix two setup crashes found by fuzz testing
ago%!(EXTRA string=10 years)
Rohit Nirmal
35fcd0817f
stb_vorbis.c: Silence -pedantic warning.
ago%!(EXTRA string=10 years)
Sean Barrett
60939ec653
fix some more signed shifts
ago%!(EXTRA string=10 years)
Sean Barrett
a3d62dfec1
fix a few crash bugs with invalid stb_vorbis files (reported by Philip Bennefall, found using a fuzz tester)
ago%!(EXTRA string=10 years)
Sean Barrett
7670656322
fix some signed shifts that should have been unsigned for C spec reasons
ago%!(EXTRA string=10 years)
Sean Barrett
0e24ec5feb
fix some cases that didn't return outofmem error properly and would crash instead
ago%!(EXTRA string=10 years)
Sean Barrett
a009673856
update stb_vorbis version
ago%!(EXTRA string=10 years)
Sean Barrett
ebb54fd7a3
seeking in stb_vorbis (Dougall Johnson)
...
test program for seeking (stb)
ago%!(EXTRA string=10 years)
Ryan Whitworth
f844b2dbd2
Added public domain license text
ago%!(EXTRA string=10 years)
Sean Barrett
a200fab163
add some minor comments
ago%!(EXTRA string=10 years)
Sean Barrett
947bdcd027
update version numbers & docs
ago%!(EXTRA string=10 years)
Nicolas Guillemot
fda335609f
don't redefine __forceinline with mingw
...
mingw redefines __forceinline (though I don't think this applies to all
versions of mingw.) Therefore, don't redefine it if mingw has already
defined it.
ago%!(EXTRA string=10 years)
Sean Barrett
4b518bb2b6
whoops, didn't mean to check in those changes for this file, but did for the other files
ago%!(EXTRA string=10 years)
Sean Barrett
0d840ab330
quick & dirty leak checker
ago%!(EXTRA string=10 years)
Sean Barrett
b8e0530fdf
update contributor list & version number
ago%!(EXTRA string=11 years)
Sean Barrett
33d621ca48
tweaks to const-correct API change
ago%!(EXTRA string=11 years)
Alejandro Pereda
93c02695e3
Const in decode/open memory.
...
"const" added in stb_vorbis_decode_memory and stb_vorbis_open_memory to
allow to read from const buffers.
ago%!(EXTRA string=11 years)
Sean Barrett
c8a3522a5f
version number
ago%!(EXTRA string=11 years)
Ronny Chevalier
2119c17ae9
stb_vorbis: fix unused variables
...
Conflicts:
stb_vorbis.c
ago%!(EXTRA string=11 years)
Sean Barrett
260741ed33
vorbis warnings from ronny chevalier
...
I manually made these changes because they
disabled some substantial amounts of code,
and I wanted to make sure this wasn't due to
original code having bugs or deviating from
the specification
ago%!(EXTRA string=11 years)
Ronny Chevalier
758c165d2c
stb_vorbis: fix unused functions
ago%!(EXTRA string=11 years)
Ronny Chevalier
422e29017c
stb_vorbis: fix signed/unsigned comparison
ago%!(EXTRA string=11 years)
Ronny Chevalier
c28e92e856
stb_vorbis: use const char* when appropriate
ago%!(EXTRA string=11 years)
Sean Barrett
1eb665906e
cdecl fixes
ago%!(EXTRA string=11 years)
Sean Barrett
68b5ec9392
fix cdecl
ago%!(EXTRA string=11 years)
Sean Barrett
2da2806d20
update version numbers due to warnings/minor fixes
ago%!(EXTRA string=11 years)