Memory Address Access Bugs

smbgaiden
Posts: 5
Joined: Wed Oct 18, 2017 8:09 am

Memory Address Access Bugs

Postby smbgaiden » Wed Nov 08, 2017 3:52 am

Dear EspressIf,

Reporting bootrom memory access bugs.

Environment:
String and binary literals loaded into flash above 0x40210000.
Use os_memcpy or os_printf with the binary or string literals as the source and RAM address as the destination.

Calling will crash the esp8266. The exception will occur because these functions use l8ui rather than doing something like:
aligned = addr&0xFFFFFFFC;
l32i.n r3, aligned
Shift some of the bytes in the r3 into the destination according to 1-3 bytes being unaligned.
Process rest of buffers.

Who is online

Users browsing this forum: No registered users and 1 guest