mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-03 12:16:24 -04:00
fw: Don't allow an app size of 0
This commit is contained in:
parent
0331bddc10
commit
9bb47c0bdb
1 changed files with 2 additions and 1 deletions
|
@ -245,7 +245,8 @@ int main()
|
|||
putinthex(local_app_size);
|
||||
lf();
|
||||
|
||||
if (local_app_size > TK1_APP_MAX_SIZE) {
|
||||
if (local_app_size == 0 ||
|
||||
local_app_size > TK1_APP_MAX_SIZE) {
|
||||
rsp[0] = STATUS_BAD;
|
||||
fwreply(hdr, FW_RSP_LOAD_APP, rsp);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue