Detect bad b_info.method

https://issues.oss-fuzz.com/u/1/issues?q=upx
	modified:   p_lx_elf.cpp
	modified:   p_unix.cpp
	modified:   packhead.cpp
	modified:   packhead.h
This commit is contained in:
John Reiser
2025-02-20 09:00:25 -08:00
parent 896dff9619
commit 8cce9cf641
4 changed files with 22 additions and 14 deletions
+1
View File
@@ -63,6 +63,7 @@ struct PackHeader final {
int n_mru; // specific name for filter ctojr
};
int header_checksum;
int set_method(int m, unsigned offset = 0); // check, then assign
// support fields for verifying decompression
unsigned saved_u_adler;