aboutsummaryrefslogtreecommitdiff
path: root/vcpkg-ports/libsndfile/fix-wavlike.patch
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /vcpkg-ports/libsndfile/fix-wavlike.patch
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'vcpkg-ports/libsndfile/fix-wavlike.patch')
-rw-r--r--vcpkg-ports/libsndfile/fix-wavlike.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg-ports/libsndfile/fix-wavlike.patch b/vcpkg-ports/libsndfile/fix-wavlike.patch
new file mode 100644
index 00000000..fadea008
--- /dev/null
+++ b/vcpkg-ports/libsndfile/fix-wavlike.patch
@@ -0,0 +1,13 @@
+diff --git a/src/wavlike.c b/src/wavlike.c
+index a3388d75..cf5a7d2b 100644
+--- a/src/wavlike.c
++++ b/src/wavlike.c
+@@ -971,7 +971,7 @@ wavlike_subchunk_parse (SF_PRIVATE *psf, int chunk, uint32_t chunk_length)
+ else
+ psf_log_printf (psf, "%M : %u\n", chunk, chunk_length) ;
+
+- while (bytesread < chunk_length)
++ while (chunk_length - bytesread >= 4)
+ { uint32_t thisread ;
+
+ if ((thisread = psf_binheader_readf (psf, "m", &chunk)) == 0)