src: pefile: try to work-around a scan-build warning

This commit is contained in:
Markus F.X.J. Oberhumer
2023-01-29 12:21:15 +01:00
parent 5056215a1f
commit 19147963b9
2 changed files with 23 additions and 23 deletions
+4 -4
View File
@@ -87,8 +87,8 @@ protected:
virtual bool canUnpackVersion(int version) const override
{ return (version >= 12 && version <= 13); }
int canUnpack0(unsigned max_sections, LE16 &ih_objects,
LE32 &ih_entry, unsigned ihsize);
int canUnpack0(unsigned max_sections, unsigned objs,
unsigned ih_entry, unsigned ih_size);
protected:
virtual int readFileHeader();
@@ -209,7 +209,7 @@ protected:
};
MemBuffer mb_isection;
pe_section_t *isection;
SPAN_0(pe_section_t) isection = nullptr;
bool isdll;
bool isrtm;
bool isefi;
@@ -218,7 +218,7 @@ protected:
bool use_stub_relocs;
static unsigned virta2objnum (unsigned, pe_section_t *, unsigned);
static unsigned virta2objnum (unsigned, SPAN_0(pe_section_t), unsigned);
unsigned tryremove (unsigned, unsigned);
enum {