mcst-linux-kernel/patches-2024.06.26/7zip-22.01/0001_Werror_signed-compare....

20 lines
772 B
Diff

Description: adjust to the change from network-manager-dev to libnm-dev
Origin: MCST
Bug-SourceForge: https://sourceforge.net/p/sevenzip/patches/404/
Forwarded: yes
AO MCST
Last-Update: 2022-10-14
diff --git a/WimIn.cpp.orig b/WimIn.cpp
index fa1137c..7f05165 100644
--- old/CPP/7zip/Archive/Wim/WimIn.cpp
+++ new/CPP/7zip/Archive/Wim/WimIn.cpp
@@ -677,7 +677,7 @@ HRESULT CDatabase::ParseDirItem(size_t pos, int parent)
return S_FALSE;
const Byte *p2 = DirData + pos;
const UInt64 len2 = Get64(p2);
- if ((len2 & align) != 0 || rem2 < len2 || len2 < (IsOldVersion ? 0x18 : 0x28))
+ if ((len2 & align) != 0 || rem2 < len2 || len2 < (UInt64)(IsOldVersion ? 0x18 : 0x28))
return S_FALSE;
DirProcessed += (size_t)len2;