mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-29 14:38:29 +00:00
wav: Patched to compile on Visual Studio.
This commit is contained in:
@@ -1889,7 +1889,7 @@ static bool WaveLoad(SDL_IOStream *src, WaveFile *file, SDL_AudioSpec *spec, Uin
|
|||||||
size. This also means a malicious file can't allocate 4 gigabytes
|
size. This also means a malicious file can't allocate 4 gigabytes
|
||||||
for the chunks without actually supplying a 4 gigabyte file. */
|
for the chunks without actually supplying a 4 gigabyte file. */
|
||||||
if ((flen > 0) && ((chunk->position + chunk->length) > flen)) {
|
if ((flen > 0) && ((chunk->position + chunk->length) > flen)) {
|
||||||
chunk->length = flen - chunk->position;
|
chunk->length = (Uint32) (flen - chunk->position);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Only use the first data chunk. Handling the wavl list madness
|
/* Only use the first data chunk. Handling the wavl list madness
|
||||||
|
Reference in New Issue
Block a user