(self, data_addr, max_size)
return None, None
Is the specified data chunk an ELF header?

        :param int data_addr:   Address of the data chunk
        :param int max_size:    Size of the data chunk.
        :return:                A tuple of ('elf-header', size) if it is, or (None, None) if it is not.
        :rtype:                 tuple
Is the specified data chunk an ELF header?
Is the specified data chunk an ELF header?
def _guess_data_type_elfheader(self, data_addr, max_size):
        """
        Is the specified data chunk an ELF header?

        :param int data_addr:   Address of the data chunk
        :param int max_size:    Size of the data chunk.
        :return:                A tuple of ('elf-header', size) if it is, or (None, None) if it is not.
        :rtype:                 tuple
        """

        obj = self.project.loader.find_object_containing(data_addr)
        if obj is None:
            # it's not mapped
            return None, None

        if data_addr == obj.min_addr and 4 < max_size < 1000:
            # Does it start with the ELF magic bytes?
            try:
                data = self.project.loader.memory.load(data_addr, 4)
            except KeyError:
                return None, None
            if data == b"\x7fELF":
                # yes!
                return MemoryDataSort.ELFHeader, max_size

        return None, None
def _guess_data_type_elfheader ( self , data_addr , max_size ) : obj = self . project . loader . find_object_containing ( data_addr ) if obj is None : # it's not mapped return None , None if data_addr == obj . min_addr and 4 < max_size < 1000 : # Does it start with the ELF magic bytes? try : data = self . project . loader . memory . load ( data_addr , 4 ) except KeyError : return None , None if data == b"\x7fELF" : # yes! return MemoryDataSort . ELFHeader , max_size return None , None