Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Commit

Permalink
Bug fix: tmp_len could be more than len in stb_vorbis_js_decode
Browse files Browse the repository at this point in the history
  • Loading branch information
hajimehoshi committed May 24, 2019
1 parent a431885 commit c3b3ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int stb_vorbis_js_decode(StbVorbisState* state, const uint8 *mem, int len, float
*read = 0;
if (!state->v) {
int tmp_len = 32;
while (!state->v && tmp_len < len) {
while (!state->v) {
int tmp_consumed = 0;
int error = 0;
if (tmp_len > len) {
Expand Down

0 comments on commit c3b3ecd

Please sign in to comment.