1
0
mirror of https://github.com/nothings/stb synced 2025-03-28 21:13:20 +00:00

Merge f887fbb640caa68de95e9d2c4cd4b81c01140ffc into f0569113c93ad095470c54bf34a17b36646bbbb5

This commit is contained in:
manx 2025-03-19 15:24:40 +01:00 committed by GitHub
commit 6084e050e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1401,7 +1401,7 @@ static int set_file_offset(stb_vorbis *f, unsigned int loc)
#endif
f->eof = 0;
if (USE_MEMORY(f)) {
if (f->stream_start + loc >= f->stream_end || f->stream_start + loc < f->stream_start) {
if (loc >= f->stream_len) {
f->stream = f->stream_end;
f->eof = 1;
return 0;