[fuzz] disable HDLC FCS check during fuzz tests (#3536)

This commit is contained in:
Jonathan Hui
2019-01-31 08:48:44 -08:00
committed by GitHub
parent 8dcdc2cf31
commit 0e8967f5ed
+5 -1
View File
@@ -242,7 +242,11 @@ void Decoder::Decode(const uint8_t *aData, uint16_t aLength)
{
otError error = OT_ERROR_PARSE;
if ((mDecodedLength >= kFcsSize) && (mFcs == kGoodFcs))
if ((mDecodedLength >= kFcsSize)
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
&& (mFcs == kGoodFcs)
#endif
)
{
// Remove the FCS from the frame.
mWritePointer.UndoLastWrites(kFcsSize);