From 5c0ae7b7606ab4072ac5a47d20f7d75426e4f32b Mon Sep 17 00:00:00 2001 From: micsthepick <11528421+micsthepick@users.noreply.github.com> Date: Sun, 8 Dec 2024 10:22:49 +1100 Subject: [PATCH] handle EOF in File::getVLI() --- paq8pxd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paq8pxd.cpp b/paq8pxd.cpp index 8100d2a..f3d2802 100644 --- a/paq8pxd.cpp +++ b/paq8pxd.cpp @@ -967,7 +967,7 @@ class File { int k = 0; U8 b = 0; do { - b = getc(); + b = max(0, getc()); i |= U64((b & 0x7FU) << k); k += 7; } while((b >> 7U) > 0 ); @@ -19063,7 +19063,7 @@ void henttail( char *in,char *out,FileTmp *o){ (memcmp(&ps[2],"template:",9)==0) || (memcmp(&ps[2],"wikinews:",9)==0) || (memcmp(&ps[2],"bild:",5)==0) || - (memcmp(&ps[2],"fr:Wikipédia:Aide]]",20)==0) || + (memcmp(&ps[2],"fr:Wikip�dia:Aide]]",20)==0) || (memcmp(&ps[2],"de:Boogie Down Produ",20)==0) || (memcmp(&ps[2],"da:Wikipedia:Hvordan",20)==0) || (memcmp(&ps[2],"sv:Indiska musikinstrument",26)==0) ||