We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4b423f + 349d56e commit 12bf723Copy full SHA for 12bf723
1 file changed
src/encauth/ccm/ccm_add_nonce.c
@@ -58,6 +58,9 @@ int ccm_add_nonce(ccm_state *ccm,
58
ccm->PAD[x++] = 0;
59
}
60
for (; y < ccm->L; y++) {
61
+ if (x >= sizeof(ccm->PAD)) {
62
+ return CRYPT_INVALID_ARG;
63
+ }
64
ccm->PAD[x++] = (unsigned char)((len >> 24) & 255);
65
len <<= 8;
66
0 commit comments