USe a C++ style case in McTest.hpp
This commit is contained in:
parent
89da3e8e94
commit
b8560c553f
@ -30,8 +30,8 @@ class EntryPointPlugin(manticore.core.plugin.Plugin):
|
|||||||
def on_syscall_callback(self, state, index):
|
def on_syscall_callback(self, state, index):
|
||||||
if 0x41414141 == index:
|
if 0x41414141 == index:
|
||||||
print 'here!!!!!'
|
print 'here!!!!!'
|
||||||
state_id = self._executor._workspace.save_state(state)
|
state_id = self.manticore._executor._workspace.save_state(state)
|
||||||
self._executor.put(state_id)
|
self.manticore._executor.put(state_id)
|
||||||
raise manticore.TerminateState("Canceled", testcase=False)
|
raise manticore.TerminateState("Canceled", testcase=False)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -114,7 +114,7 @@ MCTEST_INLINE static bool IsSymbolic(double x) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MCTEST_INLINE static bool IsSymbolic(void *x) {
|
MCTEST_INLINE static bool IsSymbolic(void *x) {
|
||||||
return IsSymbolic((uintptr_t) x);
|
return IsSymbolic(reinterpret_cast<uintptr_t>(x));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user