Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
capstone
/
14a206807eabd3cfd0fa167caf296e912514d4cf
/
cs.c
2df9a8e
suppress MSVC code analysis (PREfast) warnings
by Satoshi Tanda
· 8 years ago
dabc9f2
x86: properly handle SSE/AVX instructions
by Nguyen Anh Quynh
· 8 years ago
f7fe640
port #684 to the next branch
by tandasat
· 9 years ago
c45f1db
Merge remote-tracking branch 'upstream/next' into next
by tandasat
· 9 years ago
45e5eab
port Windows driver support
by tandasat
· 9 years ago
4d36deb
fix #673
by tandasat
· 9 years ago
9d07c1c
arm: only reset IT block for ARM
by Nguyen Anh Quynh
· 9 years ago
56aa0ac
arm: reset IT block before cs_disasm(). this fixes issue #643
by Nguyen Anh Quynh
· 9 years ago
201a0a1
"vsnprintf()" is unsupported on Windows CE. The closest match is "_vsnprintf()".
by Koutheir Attouchi
· 9 years ago
256090a
add CS_OPT_UNSIGNED option to print immediate in unsigned form. only ARM is supported for now (issue #585)
by Nguyen Anh Quynh
· 9 years ago
a21cc8c
Fix instruction cache size define
by Pb
· 9 years ago
197e457
code style
by Nguyen Anh Quynh
· 9 years ago
2769c77
Correct build settings for xnu kext. Changed calloc name to avoid potential conflicts
by Pb
· 9 years ago
86ad3d6
Support of xnu memory allocator
by Pb
· 9 years ago
d07a21b
Kill a shadowed declaration of a local variable.
by Tyler J. Stachecki
· 9 years ago
2ee675c
This adds M68K support to Capstone
by Daniel Collin
· 9 years ago
8aba4cd
add error code CS_ERR_X86_MASM
by Nguyen Anh Quynh
· 9 years ago
0b96545
new option CS_OPT_MNEMONIC to customize instruction mnemonic
by Nguyen Anh Quynh
· 10 years ago
160e198
Add support to embed Capstone 3.x branch into OS X kernel extensions.
by reverser
· 10 years ago
58eb073
x86: avoid duplicating registers returned by cs_regs_access(). also add *CX registers to regs_read[], regs_write[] for REP* instructions
by Nguyen Anh Quynh
· 10 years ago
efffe78
Add new API and start to provide access information for instruction operands
by Nguyen Anh Quynh
· 10 years ago
bfcaba5
2015
by Nguyen Anh Quynh
· 10 years ago
3973d8b
Silencing Clang warning bys casting values
by Félix Cloutier
· 10 years ago
9c10ace
Make pkg-config and source consistent with installation
by pancake
· 10 years ago
611b0c5
code style
by Nguyen Anh Quynh
· 10 years ago
f1e4975
check malloc return value
by Edward Williamson
· 10 years ago
ff7bba3
x86: print out immediate as positive number for logic arithmetic operations: AND, OR, XOR. only works for x86 Intel syntax so far. issue reported by Pancake
by Nguyen Anh Quynh
· 10 years ago
6c0dd63
fix an overflow bug in fill_insn()
by Nguyen Anh Quynh
· 10 years ago
d91f964
* Fixed bug in Thumb2 pop caused by me incorrectly assuming that
by flyingsymbols
· 10 years ago
9090672
clean cs_disasm_iter()
by Nguyen Anh Quynh
· 10 years ago
29ce6c3
cs_disasm_iter: return false when handle is invalid and do not zero out detail pointer when handling skipdata mode. suggested by @hlide
by Nguyen Anh Quynh
· 10 years ago
0a2eca7
modify API cs_disasm_iter() and add new API cs_malloc(). also adds sample code test_iter.c
by Nguyen Anh Quynh
· 10 years ago
993f362
New API: cs_disasm_iter
by hlide
· 10 years ago
4d3ccf4
simplify the way to calculate insn_cache in cs_disasm(). suggested by @hlide
by Nguyen Anh Quynh
· 10 years ago
2fb7c8e
Fix a bug with previous patch
by danghvu
· 10 years ago
f9d8a89
correct some comments in cs_disasm()
by Nguyen Anh Quynh
· 10 years ago
0d1aad1
Increase cache size by golden ratio
by danghvu
· 10 years ago
27a4a08
fix a double-free bug introduced by the last change in cs_disasm()
by Nguyen Anh Quynh
· 10 years ago
ea3c089
some simple optimizations for speed. this improves performance about 5%
by Nguyen Anh Quynh
· 10 years ago
16f330c
cs_disasm(): properly resize the cache when count in range [2, INSN_CACHE_SIZE]
by Nguyen Anh Quynh
· 10 years ago
523ca99
cs_disasm(): make sure cache_size is smaller than INSN_CACHE_SIZE to avoid integer overflow in malloc()
by Nguyen Anh Quynh
· 10 years ago
50eeba2
avoid setting instruction cache size to @count when Capstone uses user-customized memory management, which might fail in resource scarce env such as kernel
by Nguyen Anh Quynh
· 10 years ago
ac98ca0
set buffer size for instruction cache in cs_disasm() to @count if @count > 0. this avoids realloc() in cases where @count is pre-determined. thanks Dang Hoang Vu for the idea
by Nguyen Anh Quynh
· 10 years ago
0beb0d4
api: get back the old API cs_disasm() & mark cs_disasm_ex() deprecated. cs_disasm_ex() will be removed in the future
by Nguyen Anh Quynh
· 10 years ago
0c07cc9
zero-out instruction details, mnemonic & op_str so cs_insn doesnt have garbage in Diet mode
by Nguyen Anh Quynh
· 10 years ago
4b6b15f
fix more MSVC warnings
by Nguyen Anh Quynh
· 10 years ago
0efef5d
solve some conflicts when merging -next into -v3
by Nguyen Anh Quynh
· 10 years ago
876b6b6
use const when passing cs_insn pointers
by obs
· 10 years ago
0b69038
x86: update core with upstream. this added bunch of new instructions & groups. also updated Python & Java bindings after the core change
by Nguyen Anh Quynh
· 10 years ago
5d80678
Merge branch 'next' of https://github.com/flyingsymbols/capstone into arm
by Nguyen Anh Quynh
· 10 years ago
298d413
* added a test file to suite for testing invalid and valid instruction sequences
by flyingsymbols
· 10 years ago
027afdc
Change the prototype of the callback in SKIPDATA option. Suggested by Ben Nagy.
by Nguyen Anh Quynh
· 10 years ago
0df7e93
Change the prototype of the callback in SKIPDATA option. Suggested by Ben Nagy.
by Nguyen Anh Quynh
· 10 years ago
650f96c
add new API cs_group_name() to return group name in string, given the group id
by Nguyen Anh Quynh
· 10 years ago
25b7f76
simplify code copying @mnemonic in fill_insn()
by Nguyen Anh Quynh
· 10 years ago
d392f6e
simplify code copying @mnemonic in fill_insn()
by Nguyen Anh Quynh
· 10 years ago
22ea683
only verify x86_prefix[0] for x86 arch. bug reported by @pancake
by Nguyen Anh Quynh
· 10 years ago
1d3100a
only verify x86_prefix[0] for x86 arch. bug reported by @pancake
by Nguyen Anh Quynh
· 10 years ago
5a7f409
set @insn to NULL on error in cs_disasm_ex()
by Nguyen Anh Quynh
· 10 years ago
dab17fd
set @insn to NULL on error in cs_disasm_ex()
by Nguyen Anh Quynh
· 10 years ago
6c182ae
fix a memleaking issue in cs_disasm_ex() where memory was not freed when input code is illegit
by Nguyen Anh Quynh
· 10 years ago
cae09bf
replace offset_of with offsetof from stddef.h
by Nguyen Anh Quynh
· 10 years ago
64091f7
resize total memory allocated for @insns to just the right size for cs_disasm_ex()
by Nguyen Anh Quynh
· 10 years ago
495295e
MCInst_Init() is arch-independent
by Nguyen Anh Quynh
· 10 years ago
db3c00c
consider tab as delimiter char in asm bufffer in fill_insn()
by Nguyen Anh Quynh
· 10 years ago
69582d7
initialize cs_insn.detail by properly zero-out right members for each arch
by Nguyen Anh Quynh
· 10 years ago
c88d992
cs_disasm_ex(): properly calculate insn_cache when reallocating total variable
by Nguyen Anh Quynh
· 10 years ago
ee58394
cs_disasm_ex(): avoid multiple memcpy() by allocating memory for total, then directly work on that instead of using static array insn_cache[]
by Nguyen Anh Quynh
· 10 years ago
5329a6f
directly update cs_insn from MCInst interface to avoid multiple memcpy()
by Nguyen Anh Quynh
· 10 years ago
7566a2d
copy mnemonic in the same loop of searching for mnemonic/opstring delimiter
by Nguyen Anh Quynh
· 10 years ago
07e84a2
do not need to verify handle->insn_id in fill_insn()
by Nguyen Anh Quynh
· 10 years ago
6ddd715
we have to consider \t in input buffer of fill_insn()
by Nguyen Anh Quynh
· 10 years ago
f8ea346
properly copy buffer to op_str
by Nguyen Anh Quynh
· 10 years ago
177dd9b
simplify fill_insn(): do not check for \t in asm buffer
by Nguyen Anh Quynh
· 10 years ago
22a5a76
x86: simplify byteReader_t
by Nguyen Anh Quynh
· 10 years ago
df1acfd
nullify cs_insn.detail when detail is OFF
by Nguyen Anh Quynh
· 10 years ago
30c0659
optimize memset() of MCInst_Init()
by Nguyen Anh Quynh
· 10 years ago
99e69e1
remove a redundant call to memset() in cs_disasm_ex()
by Nguyen Anh Quynh
· 10 years ago
07c3693
cmake: properly export public APIs in capstone.DLL. thanks to Daniel Pistelli for helping to fix this issue
by Nguyen Anh Quynh
· 10 years ago
9786566
msvc: fix some Nmake warnings
by Nguyen Anh Quynh
· 10 years ago
c80d840
add XCore architecture
by Nguyen Anh Quynh
· 10 years ago
6456481
x86: add immediate operand (1) for SHL/SHR/ROR/ROL/SAR/SAL in detail mode & Intel syntax
by Nguyen Anh Quynh
· 11 years ago
8c2e2db
fix an warning on unused local variable in fill-insn() when CAPSTONE_DIET is defined
by Nguyen Anh Quynh
· 11 years ago
bb0744d
do not initialize some local vars unnecessarily. this problem was introduced when we fixed C89 issues for MSVC
by Nguyen Anh Quynh
· 11 years ago
84fecf2
added the debug configuration + correct the macro name for consistency
by Axel 0vercl0k Souchet
· 11 years ago
605faf1
moved the hardcoded macros in the vcproj & just disable the warning for the crt
by Axel 0vercl0k Souchet
· 11 years ago
42706a3
indentation with tab
by Nguyen Anh Quynh
· 11 years ago
779d4c7
first changes to get a successfully compiled version of capstone on VS2012
by Axel 0vercl0k Souchet
· 11 years ago
95657e0
cs.c : Conform to original indentation rules
by Giovanni Condello
· 11 years ago
a715df1
Do not access instructions details if the instruction is marked as SKIPDATA or if the details are NULL
by Giovanni Condello
· 11 years ago
1dbc959
x86: use strncpy() to update instruction mnemonic
by Nguyen Anh Quynh
· 11 years ago
a5ffdc3
x86: properly handle LOCK/REP in the core, so remove buch of hacks
by Nguyen Anh Quynh
· 11 years ago
6023ef7
Disassembler -> Disassembly
by Nguyen Anh Quynh
· 11 years ago
2cff6f6
x86: handle instructions with LOCK/REP/REPNE prefix after other prefixes. bear with this until we have a better approach
by Nguyen Anh Quynh
· 11 years ago
a88c116
move the macro MIN to utils.h
by Nguyen Anh Quynh
· 11 years ago
42288ac
SKIPDATA: add 1 more argument to callback function pointing to the input buffer of cs_disasm_ex()
by Nguyen Anh Quynh
· 11 years ago
11ec881
core: add CS_ERR_SKIPDATA error code to report when code access irrelevant info in SKIPDATA mode
by Nguyen Anh Quynh
· 11 years ago
07ffd64
SKIPDATA: @offset of callback function should indicate the position of examining byte in input buffer
by Nguyen Anh Quynh
· 11 years ago
a89383e
number of bytes skipped by SKIPDATA option depends on arch
by Nguyen Anh Quynh
· 11 years ago
c75a909
rename SKIPDATA_MNEM to .byte to make it different from normal instructions
by Nguyen Anh Quynh
· 11 years ago
Next »