We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5e71849 + 3ddb45a commit 04cc6ccCopy full SHA for 04cc6cc
1 file changed
demos/tv_gen.c
@@ -527,6 +527,10 @@ void ccm_gen(void)
527
printf("Error CCM'ing: %s\n", error_to_string(err));
528
exit(EXIT_FAILURE);
529
}
530
+ if (len == 0) {
531
+ printf("Error CCM'ing: zero length\n");
532
+ exit(EXIT_FAILURE);
533
+ }
534
fprintf(out, "%3d: ", y1);
535
for (z = 0; z < y1; z++) {
536
fprintf(out, "%02X", plaintext[z]);
0 commit comments