File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 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,
49694969 const void * buffer , ZyanUSize length , ZydisDecodedInstruction * instruction ,
49704970 ZydisDecodedOperand operands [ZYDIS_MAX_OPERAND_COUNT ])
49714971{
4972- if (!decoder || !instruction || !operands )
4972+ if (!decoder || !instruction || !buffer || ! operands )
49734973 {
49744974 return ZYAN_STATUS_INVALID_ARGUMENT ;
49754975 }
4976- if (!buffer || ! length )
4976+ if (!length )
49774977 {
49784978 return ZYDIS_STATUS_NO_MORE_DATA ;
49794979 }
@@ -4995,12 +4995,12 @@ ZyanStatus ZydisDecoderDecodeFull(const ZydisDecoder* decoder,
49954995ZyanStatus ZydisDecoderDecodeInstruction (const ZydisDecoder * decoder , ZydisDecoderContext * context ,
49964996 const void * buffer , ZyanUSize length , ZydisDecodedInstruction * instruction )
49974997{
4998- if (!decoder || !instruction )
4998+ if (!decoder || !instruction || ! buffer )
49994999 {
50005000 return ZYAN_STATUS_INVALID_ARGUMENT ;
50015001 }
50025002
5003- if (!buffer || ! length )
5003+ if (!length )
50045004 {
50055005 return ZYDIS_STATUS_NO_MORE_DATA ;
50065006 }
You can’t perform that action at this time.
0 commit comments