We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cabf6fb commit 52cfc0dCopy full SHA for 52cfc0d
src/lmic/lmic.c
@@ -884,7 +884,7 @@ scan_mac_cmds(
884
885
/* compute length, and exit for illegal commands */
886
int const cmdlen = getMacCmdSize(cmd);
887
- if (cmdlen > olen - oidx) {
+ if (cmdlen == 0 || cmdlen > olen - oidx) {
888
// "the first unknown command terminates processing"
889
olen = oidx;
890
break;
0 commit comments