Fix half-exploit: do not allow 0-byte loadables (padded to 16 bytes for MAC)

This commit is contained in:
Stefan `Sec` Zehl 2011-08-22 22:04:12 +02:00
parent 97de719738
commit 01dd639c1c
1 changed files with 1 additions and 1 deletions

View File

@ -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();