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):
|
||||
if 0x41414141 == index:
|
||||
print 'here!!!!!'
|
||||
state_id = self._executor._workspace.save_state(state)
|
||||
self._executor.put(state_id)
|
||||
state_id = self.manticore._executor._workspace.save_state(state)
|
||||
self.manticore._executor.put(state_id)
|
||||
raise manticore.TerminateState("Canceled", testcase=False)
|
||||
|
||||
|
||||
|
||||
@ -114,7 +114,7 @@ MCTEST_INLINE static bool IsSymbolic(double x) {
|
||||
}
|
||||
|
||||
MCTEST_INLINE static bool IsSymbolic(void *x) {
|
||||
return IsSymbolic((uintptr_t) x);
|
||||
return IsSymbolic(reinterpret_cast<uintptr_t>(x));
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user