Comments (8)
I am preventing the abortion with this code:
Expression::SPType operand0 = rInsn.GetOperand(0);
Expression::SPType operand1 = rInsn.GetOperand(1);
if (operand1 == nullptr) {
Log::Write("operand 1 is null");
return false;
}
auto pExpr1 = /* Semantic: if zf.id == int1(1): op0.val = op1.val */
Expr::MakeIfElseCond(
ConditionExpression::CondEq,
Expr::MakeId(X86_FlZf, &m_CpuInfo),
Expr::MakeConst(1, 0x1),
Expr::MakeAssign(operand0, operand1),
nullptr);
AllExpr.push_back(pExpr1);
rInsn.SetSemantic(AllExpr);
in the following file: src/arch/x86/x86_opcode.cpp
from medusa.
It may looks radical, but this behavior is desired. Just attach a debugger and look in the call stack to find the buggy instruction.
I can take a look on this bug if you can share your executable. :)
from medusa.
Well, how could I best share this exe with you?
from medusa.
4shared.com is ok I guess.
from medusa.
I really think that the code of the file has something wrong. At least if I look at this: http://pedump.me/a772ef7449783ee4edc60dd0b006ffe6/#disasm
from medusa.
Thanks for sharing, the buggy instruction was cmpxchg8b, the fix is 1d61c8e
from medusa.
Hey I've just tested your fix. It works :)
Nice job.
How do you test these things? Just debugging the application or using something different?
from medusa.
Thanks, it's actually pretty easy to debug these issues:
- start qMedusa with a debugger,
- wait for the assert to make the application crash,
- the debugger catches this exception/signal and stops,
- display the callstack
- find the faulty instruction
- ???
- profit :)
from medusa.
Related Issues (20)
- Pybind11 - unknown <unsigned int> in enumeration HOT 2
- Needed items for building into a package HOT 3
- Compilation Error on Ubuntu 16.04 with boost 1.58 and QT 5.5.1 HOT 4
- error: ‘format’ is not a member of ‘boost’ HOT 1
- dev or master dont build due to -Werror HOT 2
- Problem building Docker HOT 2
- Build fails on Ubuntu 16.10 HOT 1
- Please sanitize the build system HOT 7
- Error when running cmake: extracting cvpixelbuffer archive failed HOT 6
- Build broken due to changes in PEGTL HOT 2
- Loading executable into qMedusa works but then nothing happens HOT 10
- Properties defined at build-time do not seem to be inherited by "modules" included via medusa.cmake HOT 1
- Error when linking libmedusa to libOGDF HOT 1
- Hash mismatch HOT 4
- gameboy cpu is an extended 8080, not z80 HOT 2
- Simple instruction to novices? HOT 2
- Show seems to be removed from database after switching to anime HOT 2
- Project status? HOT 5
- Z80 support
- Where to find sqlite3 cmake configuration? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from medusa.