@@ -78,13 +78,6 @@ FUZZ_TEST(const uint8_t *data, size_t size) {
7878 sizeof (uint8_t ) * GetFDP ()->ConsumeIntegral <uint16_t >());
7979 const uint8_t *message = (const uint8_t *)message_vec.data ();
8080
81- // The parameter "len" seems to represent the length of a buffer/array. In
82- // this case, we usually don't want to provide fuzzer-generated lengths
83- // that differ from the actual length of the buffer. If you confirm that
84- // the parameter is a length parameter, you can get the length of the
85- // fuzzer-generated buffer as follows (replace "buffer" with the actual
86- // variable):
87- // int len = buffer.size();
8881 int len = message_vec.size ();
8982 crypto_hmac hmac_tmp = {};
9083 ConsumeDataAndFillRestWithZeros (hmac_tmp.hmac , 64 );
@@ -108,13 +101,6 @@ FUZZ_TEST(const uint8_t *data, size_t size) {
108101 sizeof (uint8_t ) * GetFDP ()->ConsumeIntegral <uint16_t >());
109102 const uint8_t *message = (const uint8_t *)message_vec.data ();
110103
111- // The parameter "len" seems to represent the length of a buffer/array. In
112- // this case, we usually don't want to provide fuzzer-generated lengths
113- // that differ from the actual length of the buffer. If you confirm that
114- // the parameter is a length parameter, you can get the length of the
115- // fuzzer-generated buffer as follows (replace "buffer" with the actual
116- // variable):
117- // int len = buffer.size();
118104 int len = message_vec.size ();
119105 crypto_hmac hmac_tmp = {};
120106 ConsumeDataAndFillRestWithZeros (hmac_tmp.hmac , 64 );
@@ -169,13 +155,6 @@ FUZZ_TEST(const uint8_t *data, size_t size) {
169155 sizeof (uint8_t ) * GetFDP ()->ConsumeIntegral <uint16_t >());
170156 uint8_t *key = (uint8_t *)key_vec.data ();
171157
172- // The parameter "length" seems to represent the length of a buffer/array.
173- // In this case, we usually don't want to provide fuzzer-generated lengths
174- // that differ from the actual length of the buffer. If you confirm that
175- // the parameter is a length parameter, you can get the length of the
176- // fuzzer-generated buffer as follows (replace "buffer" with the actual
177- // variable):
178- // uint8_t length = buffer.size();
179158 uint8_t length = key_vec.size ();
180159
181160 key_management_create_key (key, length);
@@ -187,13 +166,6 @@ FUZZ_TEST(const uint8_t *data, size_t size) {
187166 sizeof (uint8_t ) * GetFDP ()->ConsumeIntegral <uint16_t >());
188167 uint8_t *nonce = (uint8_t *)nonce_vec.data ();
189168
190- // The parameter "length" seems to represent the length of a buffer/array.
191- // In this case, we usually don't want to provide fuzzer-generated lengths
192- // that differ from the actual length of the buffer. If you confirm that
193- // the parameter is a length parameter, you can get the length of the
194- // fuzzer-generated buffer as follows (replace "buffer" with the actual
195- // variable):
196- // uint8_t length = buffer.size();
197169 uint8_t length = nonce_vec.size ();
198170
199171 key_management_create_nonce (nonce, length);
0 commit comments