fuzz: disable DNP3 checksums while fuzzing

pull/5139/head
Philippe Antoine 5 years ago committed by Victor Julien
parent 00509da286
commit a90b1c1bcb

@ -175,6 +175,9 @@ static uint16_t DNP3ComputeCRC(const uint8_t *buf, uint32_t len)
*/
static int DNP3CheckCRC(const uint8_t *block, uint32_t len)
{
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
return 1;
#endif
uint32_t crc_offset;
uint16_t crc;

Loading…
Cancel
Save