shithub: libtags

Download patch

ref: 7532a6a2fe10b954163cb82f2151222226e4a5b3
parent: 5287e980106078295287e6485d624c48fe225cec
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Dec 24 07:19:53 EST 2020

fix another non-interruptable temporary

--- a/wav.c
+++ b/wav.c
@@ -32,7 +32,8 @@
 		if(i == 0){
 			if(memcmp(d, "RIFF", 4) != 0 || memcmp(d+8, "WAVE", 4) != 0)
 				return -1;
-			if((sz = leuint(d+4)) < 4)
+			sz = leuint(d+4);
+			if(sz < 4)
 				return -1;
 			sz -= 4;
 			continue;