Commit Graph

2471 Commits

Author SHA1 Message Date
e1e2b5b790 fix compiling error in MS VS2015 (#869)
for issue #868
2017-04-26 09:10:44 +08:00
2acb20560c cstool: support arm64be 2017-04-25 21:33:56 +08:00
10e8323f26 Bugfix : setting all fields to insns cache (#899)
* Bugfix : setting all fields to insns cache

* Bugfix
Fixing root cause, not setting opcode to 0 in default case

* Not resetting opcode to 0 in this case as well

* Finalizing bugfix
2017-04-21 21:20:17 +08:00
54f4863303 python: add a debug line 2017-04-19 23:19:00 +08:00
c1d5c09949 cleanup 2017-04-17 10:24:31 +08:00
3c467fec2f Fix for incorrect operand size in 64bit CALL / JMP when x66 prefix in use (#777) 2017-04-15 10:34:50 +08:00
szt
8e39d82841 replace if-s in AArch64_AM_decodeAdvSIMDModImmType10 with lookup table (#552)
* replace if-s in AArch64_AM_decodeAdvSIMDModImmType10 with lookup table

Lookup table is much faster than bunch of if-s. If you don't like lookup tables, I have another proposal. See http://goo.gl/RjW1lr and compare generated machine code

* Smaller lookup table and shifting and bit mask used

* Update AArch64AddressingModes.h
2017-04-15 09:50:06 +08:00
e3ff166781 vb6 bindings added to credits.txt (#891)
* +vb6 bindings

* + vb6 bindings to credits.txt
2017-04-15 00:12:41 +08:00
bbb6b9e2f8 add VB to README 2017-04-14 23:26:55 +08:00
edc8ef0faa +vb6 bindings (#889) 2017-04-14 23:23:08 +08:00
0e4cdd9b6b PHP binding 2017-04-12 10:02:16 +08:00
04ce7f29a6 cstool: fix mips64 mode 2017-04-11 09:46:18 +08:00
85f4b8f7d9 Fix an integer overflow issue (#871)
* provide a validity check to prevent against Integer overflow conditions

* fix some style issues.

* provide a validity check in malloc() function to prevent against integer overflow conditions

* missing Ntintsafe.h

* use tabs for indentation
2017-03-20 20:13:14 +08:00
5be7444c09 x86: support BND prefix. issue #872 2017-03-18 00:08:10 +08:00
6fe86eef62 provide a validity check to prevent against Integer overflow conditions (#870)
* provide a validity check to prevent against Integer overflow conditions

* fix some style issues.
2017-03-13 23:34:48 +08:00
fbfa991cae add nmake.bat 2017-03-13 15:06:32 +08:00
d786983104 cstool: support armbe mode 2017-03-10 20:31:23 +08:00
e2d9ada4ee Update cs.c
remove a dead code, suggested by @vit9696 on #867
2017-03-08 20:57:33 +08:00
93f7af2375 Merge pull request #867 from vit9696/patch-1
Fix compilation from within a macOS kernel extension
2017-03-08 20:53:02 +08:00
4361596b92 fix compilation from within a macOS kernel extension 2017-03-08 14:40:22 +03:00
d8ef4914d7 fix some warnings on VS2010 on redefining INTxx_MIN, INTxx_MAX 2017-03-06 14:40:30 +08:00
bac2b3b202 Merge pull request #865 from rhelmot/master
Add python prebuilt directory
2017-03-05 14:07:00 +08:00
9d3e929ae6 Add ability to copy prebuilt libraries from prebuilt directory during python build 2017-03-04 17:09:07 -08:00
e22577e42d update ChangeLog 3.0.5-rc2 2017-03-02 22:21:24 +08:00
335b85c627 arm64: fix immediate number in detail mode. see #860 2017-02-26 18:17:39 +08:00
adec3a88d5 CMake: bump version to 3.0.5 2017-02-26 10:45:16 +08:00
1504f913f1 x86: consistent register names ST0-ST7 with the asm output 2017-02-22 15:54:11 +08:00
2fa4744f1d arm64: rename enum arm64_mrs_reg to arm64_sysreg 2017-02-22 15:34:30 +08:00
96309544ba arm: add IMM operand for printPostIdxImm8s4Operand(). issue #861 2017-02-22 09:26:54 +08:00
972a512ba2 Merge branch 'master' of https://github.com/aquynh/capstone 2017-02-19 21:27:30 +08:00
f15f3bc6f2 ppc: print 0 offset for memory operand. see issue #856 2017-02-19 21:27:17 +08:00
9ad8eb6680 x86: fix EAX operand for X86_MOV32ao32. fix issue #852 2017-02-09 16:29:13 +08:00
85c1b4b687 Python: Automatically conform to PEP440 for version numbers. ported from Unicorn Python binding 2017-02-01 13:11:21 +08:00
0f456b3379 switch endian mode with cs_option() for Arm/Arm64/Mips/Sparc. fix issue #849 2017-02-01 11:17:13 +08:00
63fb1f4a68 Merge pull request #843 from JustEnuff2BDangerous/master
Patch for issue #842
2017-01-19 09:10:19 +08:00
952d534d1b Patch for issue #842
The SETEND instruction is a 16 bit Thumb instruction which is included
in T variants of ARMv6 and above, but is not available in M-Class cores
(see ARM Compiler toolchain Assembler Reference Ver 5.0).

To be consistent with other similar instructions its group flags have
been updated to be:

{ARM_GRP_THUMB, ARM_GRP_V6, ARM_GRP_NOTMCLASS,0}
2017-01-18 17:35:42 +00:00
2562670713 x86: Fix the operand encoding in the test instruction for reduce set, issue #702 2017-01-03 01:30:34 +08:00
7c5c636e15 x86: Fix the operand encoding in the test instruction, issue #702 2017-01-03 01:09:15 +08:00
3847798c4e Merge pull request #833 from 0xbc/fix_cstool_build_vs2012
Fix build under VS2012 (i.e. MSC_VER = 1700)
2016-12-21 10:59:50 +08:00
e213802e63 Fix build under VS2012 (i.e. MSC_VER = 1700)
cstool.c currently imports inttypes.h, which breaks
building on older Visual Studio versions (I've been
testing 2012). This commit removes the explicit include
of inttypes.h, which is already handled in platform.h
(which is included by capstone.h). A define for the
function strtoull (used by cstool) has also been added
to platform.h for the case where MSC_VER <= 1700.

I don't know what effect this will have on OS X builds
as I'm unable to test on that platform.

Also, cstool.c doesn't need to include stdio.h
because it's already included by capstone.h.
2016-12-21 13:12:32 +10:30
0de0c8b49d Merge pull request #817 from GBuella/fix_x86_rel_addr_macro
x86: fix X86_REL_ADDR macro - handle two-byte jump instructions
2016-11-22 10:20:13 +08:00
8925ff9bde x86: fix X86_REL_ADDR macro - handle two-byte jump instructions 2016-11-21 16:40:42 +01:00
ae79bd95de Add a check of MSVC variable before setting flags that link the libra… (#814)
* Add a check of MSVC variable before setting flags that link the library with the MSVC static runtime

* Move MSVC guard inside the 'foreach' loop used to force static runtime link
2016-11-16 08:11:36 +08:00
c8c587fa6c Merge pull request #815 from FuzzySecurity/PowerShell-Binding
PowerShell binding: $Address -> UInt64 !Int32
2016-11-16 00:15:24 +09:00
2328253802 $Address -> UInt64 !Int32 2016-11-15 13:45:52 +01:00
01cf1581d0 Merge remote-tracking branch 'aquynh/master' into PowerShell-Binding 2016-11-15 13:36:24 +01:00
63573691f8 Merge pull request #813 from ehntoo/master
Use the correct mapping for 32-bit Thumb Big-Endian insns
2016-11-14 21:30:52 +09:00
da38d99d51 Use the correct mapping for 32-bit Thumb Big-Endian insns 2016-11-13 23:18:13 -05:00
8b7bac2479 Fix cs_close() pointer to handle not handle (#810)
* Binding.README

* Binding.README

* Binding.README

* Binding.README.Ps1

* Binding.PowerShell-Script

Added script to generate compressed DLL output & update for README

* PowerShell.Binding-Rework

A rework of the pull request based on feedback for the same pull
request in Keystone

* +Get-CapstoneDisassembly

Reworked according to the module in Keystone

* Revert constant generation + Quality of service change

* Fix: cs_close -> [ref]Ptr not Ptr
2016-11-13 22:35:16 +09:00
b526229ee4 Fix: cs_close -> [ref]Ptr not Ptr 2016-11-12 16:01:33 +01:00