mirror of
https://github.com/serge1/ELFIO.git
synced 2024-11-19 11:14:46 +00:00
Add check for data endianess flags
This commit is contained in:
parent
0fac6ce45b
commit
79fcd11595
@ -129,6 +129,11 @@ class elfio
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( ( e_ident[EI_DATA] != ELFDATA2LSB ) &&
|
||||
( e_ident[EI_DATA] != ELFDATA2MSB ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
convertor.setup( e_ident[EI_DATA] );
|
||||
header = create_header( e_ident[EI_CLASS], e_ident[EI_DATA] );
|
||||
if ( 0 == header ) {
|
||||
|
Loading…
Reference in New Issue
Block a user