Comments (5)
That message indicates that the magic number (first 4 bytes of the pyc file) wasn't recognized... Since the .pyc files included in the tests directory are known to work at least far enough to decode the magic number, I suspect something is odd about compilation with VS2012, but I haven't been able to reproduce it so far (I tried with the VS 2012 platform toolset in both x86 and x64 targets). Please verify that your .pyc files aren't corrupt, and provide more details on your configuration.
from pycdc.
Confirming
Compiled with VC++2008 Express
K:\Documents and Settings\Administrator\Desktop\wot\dec\pycdc\bin>pycdas.exe ..\tests\15_test_class.pyc
Bad MAGIC!
15_test_class.pyc (Python -1.-1)
<TYPE: 48>
K:\Documents and Settings\Administrator\Desktop\wot\dec\pycdc\bin>pycdas.exe ..\tests\15_test_expressions.pyc
Bad MAGIC!
15_test_expressions.pyc (Python -1.-1)
<TYPE: 48>
K:\Documents and Settings\Administrator\Desktop\wot\dec\pycdc\bin>pycdas.exe ..\tests\22_class_method.pyc
Bad MAGIC!
22_class_method.pyc (Python -1.-1)
<TYPE: 48>
K:\Documents and Settings\Administrator\Desktop\wot\dec\pycdc\bin>pycdas.exe ..\tests\26_if_elif_else.pyc
Bad MAGIC!
26_if_elif_else.pyc (Python -1.-1)
<TYPE: 48>
K:\Documents and Settings\Administrator\Desktop\wot\dec\pycdc\bin>pycdas.exe ..\tests\31_while_loops.pyc
Bad MAGIC!
31_while_loops.pyc (Python -1.-1)
<TYPE: 48>
from pycdc.
Compiled with vc++2008 Debug mode is ok,
Release mode getting Bad MAGIC!
from pycdc.
vc++2008 with Debug mode produced garbage .exe files for me (“Program is not a recognized executable”) :(
from pycdc.
It turns out that newer versions of VS will re-order the getByte() calls in Release mode, but not Debug mode. This is why I couldn't reproduce it before :(. I'm creating a fix now
from pycdc.
Related Issues (20)
- Unsupported opcode: WITH_EXCEPT_START HOT 3
- sorry for this issue i try to solve some pycdc problem HOT 2
- Warning: Stack history is not empty! Error HOT 3
- Unsupported opcode: MAP_ADD HOT 3
- can you help me?I used pycdc.exe to decompile and the result reported this error:Error decompyling main.pyc: vector::_M_range_check: __n (which is 14) >= this->size() (which is 13) HOT 1
- Expression: backO called on empty deque HOT 1
- Poor documentation HOT 2
- pycdc / decompile HOT 1
- unsupported opcode python 3.10 HOT 1
- Bad Magic! HOT 6
- failing to build pycdc HOT 6
- pycdc error HOT 7
- Build error with modern gcc HOT 1
- Unsupported argument found for LIST_EXTEND HOT 7
- when did you post,3.11 bro HOT 2
- CreateObject: Got unsupported type 0x27 HOT 2
- Very strange decompiled code. HOT 2
- tos return 0x0 value HOT 2
- Support Python 3.13 decompilation HOT 3
- Bad MAGIC (0x0A0D0DA8) HOT 22
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 pycdc.