You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
p7zip/0001-fix-data-null-pointer....

15 lines
422 B

diff --git a/CPP/7zip/Archive/LzhHandler.cpp b/CPP/7zip/Archive/LzhHandler.cpp
index 21631f7..1f14621 100644
--- a/CPP/7zip/Archive/LzhHandler.cpp
+++ b/CPP/7zip/Archive/LzhHandler.cpp
@@ -163,7 +163,8 @@ struct CItem
return false;
}
const Byte *data = (const Byte *)(Extensions[index].Data);
- value = GetUi32(data);
+ if (!data) value = 0;
+ else value = GetUi32(data);
return true;
}