mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibELF: Fix uninitialized member variable in DynamicLoader, found by Coverity
This commit is contained in:
parent
82dbf76dee
commit
82b3dab1b5
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ private:
|
|||
u32 required_load_size() { return ALIGN_ROUND_UP(m_program_header.p_memsz, m_program_header.p_align); }
|
||||
|
||||
private:
|
||||
Elf32_Phdr m_program_header; // Explictly a copy of the PHDR in the image
|
||||
Elf32_Phdr m_program_header; // Explicitly a copy of the PHDR in the image
|
||||
};
|
||||
|
||||
explicit DynamicLoader(const char* filename, int fd, size_t file_size);
|
||||
|
@ -115,7 +115,7 @@ private:
|
|||
OwnPtr<DynamicObject> m_dynamic_object;
|
||||
|
||||
VirtualAddress m_text_segment_load_address;
|
||||
size_t m_text_segment_size;
|
||||
size_t m_text_segment_size { 0 };
|
||||
|
||||
VirtualAddress m_tls_segment_address;
|
||||
VirtualAddress m_dynamic_section_address;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue