File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4969,11 +4969,11 @@ ZyanStatus ZydisDecoderDecodeFull(const ZydisDecoder* decoder,
4969
4969
const void * buffer , ZyanUSize length , ZydisDecodedInstruction * instruction ,
4970
4970
ZydisDecodedOperand operands [ZYDIS_MAX_OPERAND_COUNT ])
4971
4971
{
4972
- if (!decoder || !instruction || !operands )
4972
+ if (!decoder || !instruction || !buffer || ! operands )
4973
4973
{
4974
4974
return ZYAN_STATUS_INVALID_ARGUMENT ;
4975
4975
}
4976
- if (!buffer || ! length )
4976
+ if (!length )
4977
4977
{
4978
4978
return ZYDIS_STATUS_NO_MORE_DATA ;
4979
4979
}
@@ -4995,12 +4995,12 @@ ZyanStatus ZydisDecoderDecodeFull(const ZydisDecoder* decoder,
4995
4995
ZyanStatus ZydisDecoderDecodeInstruction (const ZydisDecoder * decoder , ZydisDecoderContext * context ,
4996
4996
const void * buffer , ZyanUSize length , ZydisDecodedInstruction * instruction )
4997
4997
{
4998
- if (!decoder || !instruction )
4998
+ if (!decoder || !instruction || ! buffer )
4999
4999
{
5000
5000
return ZYAN_STATUS_INVALID_ARGUMENT ;
5001
5001
}
5002
5002
5003
- if (!buffer || ! length )
5003
+ if (!length )
5004
5004
{
5005
5005
return ZYDIS_STATUS_NO_MORE_DATA ;
5006
5006
}
You can’t perform that action at this time.
0 commit comments