jsandin / esp-bin2elf

Converts a flash dump from an esp8266 device into an ELF executable file for analysis and reverse engineering.
81 stars 13 forks source link

self.contents is 50199 bytes != self.length 245760. #5

Open stayliv3 opened 6 years ago

stayliv3 commented 6 years ago

error message:

esp_rom.RomParseException: EspRomSection.init(): self.contents is 50199 bytes != self.length 245760.

i read the source code .

        self.contents = rom_bytes_stream.read(self.length)
        print(len(self.contents))

        if len(self.contents) != self.length:
            raise RomParseException(
                "EspRomSection.init(): self.contents is %d bytes != self.length %d."
                    % (len(self.contents), self.length))

is there something wrong about rom_bytes_stream.read ?

attach file is the user2.bin

stayliv3 commented 6 years ago

user2.bin.zip

Mz1z commented 1 year ago

I have the same problem.