Merge pull request #288 from libtom/pr/fix-tv_gen-scan-build
Fix scan-build bug/warning in tv_gen - related to #287
This commit is contained in:
commit
04cc6cc652
@ -527,6 +527,10 @@ void ccm_gen(void)
|
|||||||
printf("Error CCM'ing: %s\n", error_to_string(err));
|
printf("Error CCM'ing: %s\n", error_to_string(err));
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
if (len == 0) {
|
||||||
|
printf("Error CCM'ing: zero length\n");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
fprintf(out, "%3d: ", y1);
|
fprintf(out, "%3d: ", y1);
|
||||||
for (z = 0; z < y1; z++) {
|
for (z = 0; z < y1; z++) {
|
||||||
fprintf(out, "%02X", plaintext[z]);
|
fprintf(out, "%02X", plaintext[z]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user