Commit Graph

2359 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
a69bacbe1e tests: cleanup 2016-10-17 14:41:26 +08:00
Nguyen Anh Quynh
6112d60b9d cstool: compile with CMake using CMakeLists.txt in root dir 2016-10-11 23:24:15 +08:00
Nguyen Anh Quynh
40d2e06762 cstool: initialize i in preprocess(). this fixes compilation issue for MSVC 2016-10-11 16:56:47 +08:00
Nguyen Anh Quynh
7e17968537 cstool: support CMake 2016-10-11 16:50:51 +08:00
Nguyen Anh Quynh
78920e69a4 cstool: align assembly code for x86 2016-10-11 16:19:55 +08:00
Nguyen Anh Quynh
94bb351fe7 cstool: update README with more details 2016-10-11 00:20:58 +08:00
Nguyen Anh Quynh
1d05c71144 update .gitignore 2016-10-11 00:06:07 +08:00
Nguyen Anh Quynh
8f60a5f212 cstool: make it compile with GCC on Linux 2016-10-10 23:52:29 +08:00
Nguyen Anh Quynh
9d8e212dd4 cstool: fix Makefile 2016-10-10 23:25:21 +08:00
Nguyen Anh Quynh
cae134ecda cstool: add VERSION and reformat to use tabs for indentation 2016-10-10 23:20:29 +08:00
Nguyen Anh Quynh
7487c42e92 cstool: fix Makefile 2016-10-10 23:07:39 +08:00
Nguyen Anh Quynh
63a424805e cstool: compile/clean/install/uninstall from Makefile 2016-10-10 22:54:16 +08:00
Nguyen Anh Quynh
e67baad9f0 update CREDITS.TXT 2016-10-10 15:21:29 +08:00
echotyh
7a01b36ee5 cstool 1.0 (#788)
* first cstool -- Segmentation fault: 11

* Modify the format of output.

* Preprocess the input from user. The result of converting looks right but the disassembly is not unsatisfactory.

* Skip the character not in set A = {'a'~'f','A'~'F','0'~'9'}.
i Please enter the commit message for your changes. Lines starting

* delete cstool binary

* using isxdigit() to tests for any hexadecimal-digit character

* write README

* final version 1.0 for cstool
2016-10-10 15:16:56 +08:00
Nguyen Anh Quynh
cd8d2e2cfa Merge pull request #787 from richo/richo-bytearray
Workaround unicorn handing back bytearrays
2016-10-06 14:38:31 +08:00
Richo Healey
9413509982 Workaround unicorn handing back bytearrays 2016-10-05 22:47:40 -07:00
Nguyen Anh Quynh
d872649234 Merge pull request #783 from bennofs/fix-setuppy-wheel
python-bindings: fix setup.py for wheel installation
2016-10-03 10:49:27 +08:00
Benno Fünfstück
df96d9ee6d python-bindings: fix setup.py for wheel installation
When the python bindings are installed using the new wheels
infrastructure, data_files are relative to the site-packages directory
even if using absolute paths.

The following example demonstrates the bug fixed by this commit: (ran on archlinux)

```bash
$ pip install wheel       # if this package is installed, wheel installation is made the default
Collecting wheel
  Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
    100% |################################| 71kB 124kB/s
Installing collected packages: wheel
Successfully installed wheel-0.29.0

$ pip install capstone    # this will use the wheel installation method now
Collecting capstone
  Using cached capstone-3.0.4.tar.gz
Building wheels for collected packages: capstone
  Running setup.py bdist_wheel for capstone ... done
  Stored in directory: /root/.cache/pip/wheels/7c/d1/d0/db6e2c5ef1063aabb9de2dd8b92b4c27ee6f9fd213240099b8
Successfully built capstone
Installing collected packages: capstone
Successfully installed capstone-3.0.4

$ find /usr/lib/ -name "libcapstone.so"
/usr/lib/python3.5/site-packages/usr/lib/python3.5/site-packages/capstone/libcapstone.so
```

So the path `SITE_PACKAGES` in the `data_files` specification of the
setup.py file was interpreted relative to the python site-packages
directory. The fix for this is simple: use `/capstone` instead of an
absolute path for `SITE_PACKAGES`.
2016-10-02 15:25:13 +02:00
Nguyen Anh Quynh
744181744f python: cast skipdata function inside binding to simplify the API 2016-10-02 01:36:03 +08:00
Nguyen Anh Quynh
a83352a33b python: fix CS_SKIPDATA_CALLBACK prototype 2016-10-01 01:33:09 +08:00
Nguyen Anh Quynh
bf49f3c5b5 Merge pull request #779 from tandasat/original
Fix typo, style, suppress MSVC PREfast warnings, ignore residual files on project upgrade
2016-09-28 12:15:28 +08:00
Satoshi Tanda
d7e38cd903 suppress MSVC code analysis (PREfast) warnings
Signed-off-by: Satoshi Tanda <tanda.sat@gmail.com>
2016-09-27 08:08:58 -07:00
Satoshi Tanda
5e2b01eb68 ignore MSVC project upgrade files
Signed-off-by: Satoshi Tanda <tanda.sat@gmail.com>
2016-09-27 08:05:06 -07:00
Satoshi Tanda
fbe096d147 fix typo, style
Signed-off-by: Satoshi Tanda <tanda.sat@gmail.com>
2016-09-27 07:39:51 -07:00
Nguyen Anh Quynh
088b50d2b3 Merge pull request #778 from frida/fix/uninitialized-value
Fix use of uninitialized value for some instructions
2016-09-27 08:50:46 +08:00
Ole André Vadla Ravnås
e0276cdb64 Fix use of uninitialized value for some instructions
Caught by Valgrind:

    Conditional jump or move depends on uninitialised value(s)
       at 0xD5BB6F: readModRM (X86DisassemblerDecoder.c:1528)
       by 0xD5BF02: getIDWithAttrMask (X86DisassemblerDecoder.c:1101)
       by 0xD5CC5E: getID (X86DisassemblerDecoder.c:1249)
       by 0xD5CC5E: decodeInstruction (X86DisassemblerDecoder.c:2335)
       by 0xD52009: X86_getInstruction (X86Disassembler.c:822)
       by 0xD51781: cs_disasm (cs.c:503)
2016-09-26 15:01:18 +02:00
Nguyen Anh Quynh
a5418178b2 arm: update imm in printOperand() to fix error reported by @trufae in PR #764 2016-09-22 22:25:09 +08:00
Nguyen Anh Quynh
739186d8e9 Merge pull request #774 from mrexodia/issue726_snprintf
fixed issue #726 (snprintf undefined in test_arm_regression)
2016-09-15 23:21:52 +07:00
mrexodia
b3e1f351cc fixed issue #726 (snprintf undefined in test_arm_regression) 2016-09-15 15:58:05 +02:00
Nguyen Anh Quynh
ab75293ccf Merge pull request #773 from Simorfo/master
AArch64 set good extender
2016-09-09 21:02:46 +08:00
Simorfo
90adc35a8e AArch64 set good extender 2016-09-09 13:15:32 +02:00
Nguyen Anh Quynh
0396ac4dd5 Merge pull request #763 from akihikodaki/check
Fix check target for Unix-like environment
2016-09-07 09:54:07 +08:00
Nguyen Anh Quynh
7cd1f1473a Merge pull request #769 from qc1iu/master
fix annotation.
2016-09-07 09:47:53 +08:00
qc1iu
0410b910e7 fix annotation. 2016-09-07 09:37:14 +08:00
Nguyen Anh Quynh
34509e6b8c README: add Emacs binding 2016-09-05 11:36:33 +08:00
Nguyen Anh Quynh
28dce15dfd bindings: add link to Emacs binding 2016-09-05 10:08:07 +08:00
Nguyen Anh Quynh
e3a352e963 Merge pull request #762 from akihikodaki/master
arm: treat ARM address as unsigned
2016-09-03 18:22:42 +08:00
Akihiko Odaki
2876044815 arm: treat ARM address as unsigned
It should be unsigned because:
* It does arithmetic operations
* Format strings have "%u" instead of "%d"
2016-09-03 14:28:46 +09:00
Akihiko Odaki
d9489c838e Fix check target for Unix-like environment 2016-09-03 10:55:19 +09:00
Nguyen Anh Quynh
12f46f4d3f Merge pull request #749 from tandasat/master
fix #748
2016-08-17 08:24:46 +08:00
tandasat
86cb7885bb fix #748 2016-08-16 04:36:34 -07:00
Nguyen Anh Quynh
dc7568a926 arm: fix issue #740 2016-08-11 17:01:48 +08:00
David Carne
8fb6b89113 x86: initialize eaDisplacement in 16-bit mode. Fixes #656 2016-07-18 23:28:04 +08:00
Nguyen Anh Quynh
a2d71a123f Merge branch 'master' of https://github.com/aquynh/capstone 2016-06-26 01:03:41 +08:00
Nguyen Anh Quynh
3b461fb4dd x86: fix issue #717 2016-06-26 01:03:26 +08:00
Nguyen Anh Quynh
ffd561719c Merge pull request #715 from mrexodia/build_ignore
ignore build directories for CMake
2016-06-23 10:59:25 -04:00
mrexodia
fa366067f4 ignore build directories for CMake 2016-06-23 16:53:07 +02:00
Andrew Dutcher
0ed9820d2f Python bindings: Changes to how structures are copied so that capstone works correctly in PyPy 2016-06-09 19:04:27 -07:00
Nguyen Anh Quynh
7acc2ec2c5 Merge pull request #687 from tandasat/master
fix #686
2016-05-27 08:08:48 +07:00
tandasat
3c13797e0e replace KernelProject 2016-05-26 05:50:57 -07:00