Commit Graph

3802 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
09822dd129 x86: fix endbr32 & endbr64 in #1129 2018-12-20 02:54:44 +08:00
Nguyen Anh Quynh
0875112e73 Makefile: more fix for #1312 2018-12-19 09:25:04 +07:00
Nguyen Anh Quynh
35bf271765 fix merge conflicts 2018-12-19 09:23:14 +07:00
Nguyen Anh Quynh
6e5dcce482 Makefile: more fix for #1312 2018-12-19 09:21:07 +07:00
Nguyen Anh Quynh
5c6b41e69a Merge branch 'master' of github.com:aquynh/capstone 2018-12-19 09:41:47 +08:00
Nguyen Anh Quynh
61fffb3535 fix #1311 & #1312 2018-12-19 09:41:34 +08:00
Nguyen Anh Quynh
b65d4664c6 remove rc1 from pkgconfig.mk 2018-12-19 07:49:02 +07:00
Nguyen Anh Quynh
a2efba1cf0 Merge branch 'master' of github.com:aquynh/capstone 2018-12-19 00:31:46 +08:00
Nguyen Anh Quynh
a6f297a405 RELEASE_NOTES 2018-12-19 00:31:23 +08:00
Ammar
4e1b8c49f9 x86: correct access mode for cmp instruction (#1309)
cmp instruction does not modify its operands. Currently, cmp
variants that accept a memory operand have CS_AC_WRITE access mode
set. This commit removes CS_AC_WRITE mode from cmp variants that
have it.
2018-12-18 23:22:30 +08:00
Nguyen Anh Quynh
8d4ba8d335 M680X: lowercase for registers & FCB instruction 2018-12-18 22:44:12 +08:00
Nguyen Anh Quynh
ce27eea732 TMS320C64x: lowercase for instruction mnemonics, registers & group names 2018-12-18 22:40:31 +08:00
Nguyen Anh Quynh
da6777f701 M680X: lowercase for instruction mnemonics & group names 2018-12-18 22:33:00 +08:00
Nguyen Anh Quynh
33e097d2a5 ChangeLog for v4.0 2018-12-18 22:25:39 +08:00
Nguyen Anh Quynh
a532e67efa fix ChangeLog 2018-12-17 19:10:31 +08:00
Nguyen Anh Quynh
efadadb37f HACK.TXT: add TMS320C64x 2018-12-16 21:54:29 +08:00
Nguyen Anh Quynh
60101c754d update HACK.TXT 2018-12-12 16:30:45 +07:00
Catena cyber
5a671cd756 Use whole corpus for regression testing (#1302)
* Use whole corpus for regression testing

* differetial fuzzing against llvm-mc

* Download corpus from another repo
2018-12-11 09:33:31 +07:00
Catena cyber
8ffcff1114 Continuous integration for fuzzing (#1297)
* Continuous integration for fuzzing

* Simplify fuzz testing output

* Makefile for suite fuzz

* fixup

* Code review taken into acount

* More readable fuzz harness

Inputs specify only on first line the mode
2018-12-04 15:02:16 +07:00
Nguyen Anh Quynh
c63838c40c PPC: print 16bit imm as unsigned 2018-11-25 21:12:05 +07:00
Nguyen Anh Quynh
e84889433f Update README.md
add D binding
2018-11-21 17:45:33 +08:00
Dimitri Bohlender
92b290eded Update README (#1291) 2018-11-21 17:43:15 +08:00
amirgon
a6efaf3414 Recognize MSYS compiler as MINGW compiler (#1290) 2018-11-21 00:46:12 +08:00
Dimitri Bohlender
27a202f858 Typo in register's name (#1282)
Fixed Minor typo, i.e. the friendly string representation of X86_REG_ST0 was "st(0"
2018-11-02 07:43:54 +08:00
Nguyen Anh Quynh
a7faa5b383 x86: fix instruction suffix of MOV to segment register for ATT syntax. issue #1240 2018-10-26 14:08:18 +08:00
Nguyen Anh Quynh
d1927ee0a4 x86: fix operand access of FSTP (#1255) 2018-10-25 23:22:48 +08:00
Derrick McKee
7b6f0d4bd9 Generate capstone.pc to the location it is installed from (#1265)
* forcing capstone.pc to be generated in the same place it is installed from

* x86: fix operand access of SETE & SETNE (#1262)

* forcing capstone.pc to be generated in the same place it is installed from
2018-10-23 19:42:36 -03:00
ael
24354089cb fix include path in pkg-config template (#1276) 2018-10-23 19:42:01 -03:00
Nguyen Anh Quynh
cf8770c30e Merge branch 'master' of github.com:aquynh/capstone 2018-10-10 14:14:48 +08:00
Nguyen Anh Quynh
c3dfecb946 x86: fix operand access of SETE & SETNE (#1262) 2018-10-10 14:07:07 +08:00
blacktop
9a4bc6ce00 Remove i386 from Makefile (#1260) 2018-10-03 15:21:54 +08:00
Nguyen Anh Quynh
6360b82a3f x86: fix operand access of fistp & fstp, in #1255 2018-10-02 12:22:13 +02:00
Nguyen Anh Quynh
0492f93c3d x86: fix operand access of CMP in #1253 2018-10-02 12:18:29 +02:00
Hugo
633050764d Add python_requires and update Trove classifiers (#1251) 2018-10-02 17:45:45 +08:00
Bruce Mitchener
9e0b4dbfc1 Fix typo: combined. (#1254) 2018-10-02 17:44:39 +08:00
Nguyen Anh Quynh
3cacf6772a bindings: make bindings/const_generator.py compatible with recent reformat of C headers 2018-10-01 20:29:39 +08:00
Bruce Mitchener
8917e170c4 Adjust comments in arch headers for doxygen style. (#1250) 2018-10-01 20:11:21 +08:00
Nguyen Anh Quynh
d499a349e4 bindings: update PPC constants 2018-09-17 21:01:01 +08:00
Bruce Mitchener
6bcd9e47af Use doxygen style comments. (#1249)
This converts various documentation comments to use Doxygen-style
syntax so that other tools can pick up and process these comments.
2018-09-17 20:59:47 +08:00
Bruce Mitchener
62059c1ee1 Fix typos. (#1248) 2018-09-17 20:54:00 +08:00
Tim Brooks
5cac05846e Correct use of strncpy function (#1247)
The last argument should be the max size of the destination, not the
source buffer. A null byte is added to the end of the destination buffer
since strncpy only adds one if it does not truncate the source.
This fixes the -Wstringop-overflow warning on GCC.
2018-09-15 13:47:52 +08:00
beatcracker
d14da45e8f Update PowerShell bindings (#1239)
* Remove trailing whitespace

* ~2x speedup by removing array appending

More info: https://powershell.org/2013/09/16/powershell-performance-the-operator-and-when-to-avoid-it/

* Import inline C# conditionally

Avoids errors when importing module using "-Force"

* Throw exception on missing DLL

+ use idiomatic PowerShell

* Throw exception on errors

+ use idiomatic PowerShell

* Throw exception on errors

+ use idiomatic PowerShell

* Use idiomatic PowerShell

* Fix DLL path escaping

* Add native PowerShell formatting

Instruction address will display as "0xdeadbeef" in console output, but the actual value will be stored as appropriate integer type.

This allows to use "Address" property directly in code that relies on Get-Capstone disasselbly w/o type conversion.

The original module author was using hex-strings, because when you add things in PowerShell like this:  $Integer + '0xFF' , PowerShell will cast everything to the type of the first operand. And it's smart enough to cast hex-string to integer.

Example: https://github.com/FuzzySecurity/PowerShell-Suite/blob/master/Trace-Execution.ps1#L195

But this is unreliable and moreover, PowerShell has peculiar quirks when casting hex-strings: https://github.com/PowerShell/PowerShell/issues/3313

* Move Capstone init to separate function

* Add Get-CaptoneVersion function

Which resturns "version" object. Also add back erroneously deleted "return" to Get-CapstoneDisassembly -Version and convert it to advanced function.

* Fix help text

* Replace double quotes with single quotes where appropriate

* No need to assign $null to switch params

* Make return usage more obvious

* No need for double quotes in version banner

* Add space after comma

* ~3x speedup by removing New-Object usage. Requires PS 3.0

* Cosmetic fixes

* Remove PS 2.0 compatibility code

* Fix PSScriptAnalyzer warnings

* Don't load module if inline C# doesn't compile

* Return actual instruction bytes

* Fix version function

* Use lowercase for accelerators

* Remove "Mandatory = $False" since it's default

* Add spaces around "=" and ";"

* Use lowercase for built-in variables

* Tabs -> Spaces

* Update help

* Use standard manifest

* UTF-8, no BOM

* Remove remaining New-Object invocations

* Bump module version (semver anyone?)

* Restore PSv2 compatibility

Use [pscustomobject]/New-Object based on reported PS version.

* Tabs -> Spaces

* Update authors
2018-09-11 12:50:55 +08:00
Riccardo Schirone
5212dc571a arch/X86: fix strncpy usage (#1243)
The `n` parameter should be the size of the destination buffer, not the
source one.
2018-09-04 08:51:02 +07:00
xambroz
67b9a2174f introduce PYTHON2 and PYTHON3 variables in the makefiles (#1236)
This change makes it possible to be explicit during the build time
on what python version/binary use to compile.
2018-08-29 12:26:53 +08:00
Catena cyber
26aae877dc Avoids memory leak with fuzz driver (#1233) 2018-08-27 07:57:27 +07:00
Riccardo Schirone
71b32ce5e7 WIP: arch/TMS320C64x: fix underflow (#1220)
* arch/TMS320C64x: fix underflow

(patch coming from radare2)

* arch/TMS320C64x: fix spaces between if/for/while and parenthesis

* arch/TMS320C64x: switch back to ==
2018-07-30 15:17:43 +08:00
Nguyen Anh Quynh
e0bce87ef1 evm: fix EVMMappingInsn.inc 2018-07-29 02:38:10 +08:00
Nguyen Anh Quynh
ef90bc11ab Merge branch 'master' of github.com:aquynh/capstone 2018-07-28 00:24:46 +08:00
Nguyen Anh Quynh
bd85d90116 MacOS: do not build in Universal format by default 2018-07-28 00:24:14 +08:00
Nguyen Anh Quynh
2516c11c32 README 2018-07-24 13:44:39 +08:00