library/src/blockclass/BP-BlockClass.cc
// Non-Local Version: Allocated to pointer
Non-Local Version: Allocated to pointer
Non - Local Version : Allocated to pointer
P_X86_32_DECODED_INSTRUCTION_LIST Block::DbgDecodeInstructionsMemNL(void *addr, size_t length)
{
	unsigned char * memRead = DbgReadMemory(addr, length);
	if (memRead == NULL)
		return ERR_FAILURE;
	P_X86_32_DECODED_INSTRUCTION_LIST instList = DbgDecodeInstructionsNL((void *) memRead, length, (size_t ) addr);
	if (instList)
	{
		if(memRead)
			tq_free(this->tq, memRead);
		return instList;
	}
	return NULL;
}
P_X86_32_DECODED_INSTRUCTION_LIST Block :: DbgDecodeInstructionsMemNL ( void * addr , size_t length ) { unsigned char * memRead = DbgReadMemory ( addr , length ) ; if ( memRead == NULL ) return ERR_FAILURE ; P_X86_32_DECODED_INSTRUCTION_LIST instList = DbgDecodeInstructionsNL ( ( void * ) memRead , length , ( size_t ) addr ) ; if ( instList ) { if ( memRead ) tq_free ( this -> tq , memRead ) ; return instList ; } return NULL ; }
Non-Local Version: Allocated to pointer
Non - Local Version : Allocated to pointer
// read arbitrary data from memory // Decode the instructions and store in local struct // return the instruction list // return null for failure