- 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 · 10 years ago
- 8c2e2db fix an warning on unused local variable in fill-insn() when CAPSTONE_DIET is defined by Nguyen Anh Quynh · 10 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 · 10 years ago
- 84fecf2 added the debug configuration + correct the macro name for consistency by Axel 0vercl0k Souchet · 10 years ago
- 605faf1 moved the hardcoded macros in the vcproj & just disable the warning for the crt by Axel 0vercl0k Souchet · 10 years ago
- 42706a3 indentation with tab by Nguyen Anh Quynh · 10 years ago
- 779d4c7 first changes to get a successfully compiled version of capstone on VS2012 by Axel 0vercl0k Souchet · 10 years ago
- 95657e0 cs.c : Conform to original indentation rules by Giovanni Condello · 10 years ago
- a715df1 Do not access instructions details if the instruction is marked as SKIPDATA or if the details are NULL by Giovanni Condello · 10 years ago
- 1dbc959 x86: use strncpy() to update instruction mnemonic by Nguyen Anh Quynh · 10 years ago
- a5ffdc3 x86: properly handle LOCK/REP in the core, so remove buch of hacks by Nguyen Anh Quynh · 10 years ago
- 6023ef7 Disassembler -> Disassembly by Nguyen Anh Quynh · 10 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 · 10 years ago
- a88c116 move the macro MIN to utils.h by Nguyen Anh Quynh · 10 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
- d3ffe37 API: support SKIPDATA option (off by default) by Nguyen Anh Quynh · 11 years ago
- 59b5489 x86: rename X86_COMPACT to X86_REDUCE. suggested by Pancake by Nguyen Anh Quynh · 11 years ago
- 9518148 add X86_COMPACT option. also add CS_SUPPORT_X86_COMPACT. made Python support this change by Nguyen Anh Quynh · 11 years ago
- 48a14ca add SystemZ arch by Nguyen Anh Quynh · 11 years ago
- 05e2713 core: add Sparc arch by Nguyen Anh Quynh · 11 years ago
- 5ee2b45 core: reduce insn_cache's size when USE_SYS_DYN_MEM, not on CAPSTONE_DIET by Nguyen Anh Quynh · 11 years ago
- 034a748 core: C99 fix for cs_disasm_ex() by Nguyen Anh Quynh · 11 years ago
- 472a4a4 core: reduce default INSN_CACHE_SIZE to 32 to reduce stack memory variable size @insn_cache by Nguyen Anh Quynh · 11 years ago
- a836b75 core: reduce INSN_CACHE_SIZE for diet engine to reduce stack variable size. this might fix a crash for OSX kernel. issue reported by Enzo Matsumiya by Nguyen Anh Quynh · 11 years ago
- c46c35d core try to initialize archs as soon as we can by calling archs_enable() everywhere possible by Nguyen Anh Quynh · 11 years ago
- c8e0785 add some more comments regarding invalidating @handle of cs_close() by Nguyen Anh Quynh · 11 years ago
- fbe10a5 simplify cs_close() when freeing @printer_info, making it future proof for future arch by Nguyen Anh Quynh · 11 years ago
- ef3d04d fix a bug in cs_close(): improper check on handle value by Nguyen Anh Quynh · 11 years ago
- 226d7dc change API cs_close() to take pointer to handle as argument. this lets us invalidate the closed handle by Nguyen Anh Quynh · 11 years ago
- 48d5832 cs_support(): typecast query to uint before comparing with CS_ARCH_ALL. this is to avoid potential problems in future when we add more query types by Nguyen Anh Quynh · 11 years ago
- 5848aaa Revert "cs_disasm_ex() should verify handle->disasm() to catch the issue that this API is still called after cs_close(). bug reported by Gul" by Nguyen Anh Quynh · 11 years ago
- 2edef8f cs_disasm_ex() should verify handle->disasm() to catch the issue that this API is still called after cs_close(). bug reported by Gul by Nguyen Anh Quynh · 11 years ago
- f7cdbdf add CS_ERR_DIET error code to report information irrelevant in diet engine by Nguyen Anh Quynh · 11 years ago
- b2870e4 API: extend cs_support() to allow query on diet mode. add CS_SUPPORT_DIET at the same time by Nguyen Anh Quynh · 11 years ago
- fc83a43 add diet compile option (CAPSTONE_DIET option in config.mk). This reduces binary size by around 40% by Nguyen Anh Quynh · 11 years ago
- a86a127 Merge branch 'msvc0' into next1 by Nguyen Anh Quynh · 11 years ago
- 4f22028 add CS_ERR_VERSION to report error when binding version is different from core's API version by Nguyen Anh Quynh · 11 years ago
- 8ce50e4 x86: fix the returned value of cs_disasm_ex() when we have 2 consecutive prefixed instructions. also fix a mem leak bug by Nguyen Anh Quynh · 11 years ago
- 94020d8 x86: fix the issue with prefix instruction declared in 2.0's RELEASE_NOTES by Nguyen Anh Quynh · 11 years ago
- 743ead0 fix a bug in cs.c introduced in the last port between branches by Nguyen Anh Quynh · 11 years ago
- a82a089 more more fixes on C coding style by Nguyen Anh Quynh · 11 years ago
- 46018db Initial set of changes to support building with MSVC 2013. Right now there's a bunch fo assumptions in the .vcxproj file and some things are not as clean as they should be, but it does build a full build and works (at least the x86 side). The point of this initial checkpoint is to make sure that nothing breaks on the GCC side, that everyone is ok with the changes to the source (or if better fixes/typing can be done). by Alex Ionescu · 11 years ago
- 11b0519 reset prev_prefix at the entry of cs_disasm_ex(). this fixes a nasty segfault bug by Nguyen Anh Quynh · 11 years ago
- fd2814b reset prev_prefix at the entry of cs_disasm_ex(). this fixes a nasty segfault bug by Nguyen Anh Quynh · 11 years ago
- c34959b x86: proper calculation for the trailing instruction in total cache. issue reported by Pancake by Nguyen Anh Quynh · 11 years ago
- c36ce95 x86: proper calculation for the trailing instruction in total cache. issue reported by Pancake by Nguyen Anh Quynh · 11 years ago
- 06b3c05 cs_open() should return error on invalid mode by Nguyen Anh Quynh · 11 years ago
- 53fc5c1 cs_open() should return error on invalid mode by Nguyen Anh Quynh · 11 years ago
- 7772d85 x86: fix known issue with prefix by combining with previous prefix instruction. this is not perfect, but good enough for now by Nguyen Anh Quynh · 11 years ago
- c272e9d do not use constructor to enable archs, so code is more portable. suggested by Alex Ionescu by Nguyen Anh Quynh · 11 years ago
- 24e1227 cs_op_count() & cs_op_index() report CS_ERR_DETAIL when detail = OFF by Nguyen Anh Quynh · 11 years ago
- edeeb04 make vsnprintf() user-defined function pointer, which is passed in via the same CS_OPT_MEM option like malloc/calloc etc by Nguyen Anh Quynh · 11 years ago
- a8eb7a5 rename memory function pointer types to have cs_ prefix. also rename internal function pointers my_* to have cs_mem_ prefix - suggested by Pancake by Nguyen Anh Quynh · 11 years ago
- d159a03 tests: proper extensions for newly added static executables by Nguyen Anh Quynh · 11 years ago