Fix half-exploit: do not allow 0-byte loadables (padded to 16 bytes for MAC)
This commit is contained in:
parent
97de719738
commit
01dd639c1c
|
@ -53,7 +53,7 @@ uint8_t execute_file (const char * fname){
|
||||||
data = (uint32_t*)dst;
|
data = (uint32_t*)dst;
|
||||||
len = readbytes/4;
|
len = readbytes/4;
|
||||||
|
|
||||||
if( readbytes & 0xF ){
|
if( readbytes & 0xF || readbytes <= 0x10){
|
||||||
lcdClear();
|
lcdClear();
|
||||||
lcdPrint("!size");
|
lcdPrint("!size");
|
||||||
lcdRefresh();
|
lcdRefresh();
|
||||||
|
|
Loading…
Reference in New Issue