You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Thank you for sharing this interesting tool. When i tried it, I observed the following.
Looking at this snipped lines of code
if (addr >= del->SOURCE_SEGMENT_LENGTH) { // scopy
for (int x = 0; x < siz; x++) {
del->UPDATED_BUFFER[decode_posi + x] =
del->UPDATED_BUFFER[addr - del->SOURCE_SEGMENT_LENGTH + x];
}
}
if the address is much greater than the segment, The evaluation of the next lines will be out of buffer boundary.
In other words, the address minus the segment & x must not be greater than the page size.
my best
Hossam
The text was updated successfully, but these errors were encountered:
update
I tried to debug and see what is the issue so i followed the following:
1- in the while loop of decode_window() function, i printed the calculated address and current decoding position. This update is done on the MCU code and PC code as well.
2- Generate a delta from the PC tool.
3- Reconstruct the image through the PC tool with the additional logs.
4- I sent the delta to the MCU
5- MCU tried to reconstruct the image but it is stuck in memory fault as indicated above.
6- I compare the logs from the PC tool and the MCU. The result is they logs different values.
Note: All files are identical. The file size doesn't exceed 255KB and the generated delta is ~28KB
Hi,
Thank you for sharing this interesting tool. When i tried it, I observed the following.
Looking at this snipped lines of code
if the address is much greater than the segment, The evaluation of the next lines will be out of buffer boundary.
In other words, the address minus the segment & x must not be greater than the page size.
my best
Hossam
The text was updated successfully, but these errors were encountered: