mirror of
https://github.com/espressif/openthread.git
synced 2026-08-23 02:39:52 +00:00
[fuzz] disable HDLC FCS check during fuzz tests (#3536)
This commit is contained in:
+5
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user