169 Commits (c96f1b06b2dcf752c7c6364697af0b88797cd8fe)

Author SHA1 Message Date
Nguyen Anh Quynh 523ca99087 cs_disasm(): make sure cache_size is smaller than INSN_CACHE_SIZE to avoid integer overflow in malloc() 10 years ago
Nguyen Anh Quynh 50eeba2a86 avoid setting instruction cache size to @count when Capstone uses user-customized memory management, which might fail in resource scarce env such as kernel 10 years ago
Nguyen Anh Quynh ac98ca0129 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 10 years ago
Nguyen Anh Quynh 0beb0d494b api: get back the old API cs_disasm() & mark cs_disasm_ex() deprecated. cs_disasm_ex() will be removed in the future 10 years ago
Nguyen Anh Quynh 0c07cc9b06 zero-out instruction details, mnemonic & op_str so cs_insn doesnt have garbage in Diet mode 10 years ago
Nguyen Anh Quynh 4b6b15fcb1 fix more MSVC warnings 10 years ago
obs 876b6b6a33 use const when passing cs_insn pointers 10 years ago
Nguyen Anh Quynh 0b690387b3 x86: update core with upstream. this added bunch of new instructions & groups. also updated Python & Java bindings after the core change 10 years ago
flyingsymbols 298d413bbc * added a test file to suite for testing invalid and valid instruction sequences 10 years ago
Nguyen Anh Quynh 027afdc179 Change the prototype of the callback in SKIPDATA option. Suggested by Ben Nagy. 11 years ago
Nguyen Anh Quynh 0df7e93a3c Change the prototype of the callback in SKIPDATA option. Suggested by Ben Nagy. 11 years ago
Nguyen Anh Quynh 650f96ce43 add new API cs_group_name() to return group name in string, given the group id 11 years ago
Nguyen Anh Quynh 25b7f760ce simplify code copying @mnemonic in fill_insn() 11 years ago
Nguyen Anh Quynh d392f6ef89 simplify code copying @mnemonic in fill_insn() 11 years ago
Nguyen Anh Quynh 22ea683583 only verify x86_prefix[0] for x86 arch. bug reported by @pancake 11 years ago
Nguyen Anh Quynh 1d3100ad5b only verify x86_prefix[0] for x86 arch. bug reported by @pancake 11 years ago
Nguyen Anh Quynh 5a7f409dec set @insn to NULL on error in cs_disasm_ex() 11 years ago
Nguyen Anh Quynh dab17fd0b1 set @insn to NULL on error in cs_disasm_ex() 11 years ago
Nguyen Anh Quynh 6c182aedcf fix a memleaking issue in cs_disasm_ex() where memory was not freed when input code is illegit 11 years ago
Nguyen Anh Quynh cae09bf543 replace offset_of with offsetof from stddef.h 11 years ago
Nguyen Anh Quynh 64091f77e0 resize total memory allocated for @insns to just the right size for cs_disasm_ex() 11 years ago
Nguyen Anh Quynh 495295ecd4 MCInst_Init() is arch-independent 11 years ago
Nguyen Anh Quynh db3c00c0ff consider tab as delimiter char in asm bufffer in fill_insn() 11 years ago
Nguyen Anh Quynh 69582d71ae initialize cs_insn.detail by properly zero-out right members for each arch 11 years ago
Nguyen Anh Quynh c88d9929ae cs_disasm_ex(): properly calculate insn_cache when reallocating total variable 11 years ago
Nguyen Anh Quynh ee5839420d cs_disasm_ex(): avoid multiple memcpy() by allocating memory for total, then directly work on that instead of using static array insn_cache[] 11 years ago
Nguyen Anh Quynh 5329a6ffd4 directly update cs_insn from MCInst interface to avoid multiple memcpy() 11 years ago
Nguyen Anh Quynh 7566a2d9dd copy mnemonic in the same loop of searching for mnemonic/opstring delimiter 11 years ago
Nguyen Anh Quynh 07e84a2094 do not need to verify handle->insn_id in fill_insn() 11 years ago
Nguyen Anh Quynh 6ddd715fac we have to consider \t in input buffer of fill_insn() 11 years ago
Nguyen Anh Quynh f8ea346310 properly copy buffer to op_str 11 years ago
Nguyen Anh Quynh 177dd9b223 simplify fill_insn(): do not check for \t in asm buffer 11 years ago
Nguyen Anh Quynh 22a5a761d8 x86: simplify byteReader_t 11 years ago
Nguyen Anh Quynh df1acfd106 nullify cs_insn.detail when detail is OFF 11 years ago
Nguyen Anh Quynh 30c065998b optimize memset() of MCInst_Init() 11 years ago
Nguyen Anh Quynh 99e69e1868 remove a redundant call to memset() in cs_disasm_ex() 11 years ago
Nguyen Anh Quynh 07c3693cf2 cmake: properly export public APIs in capstone.DLL. thanks to Daniel Pistelli for helping to fix this issue 11 years ago
Nguyen Anh Quynh 9786566aaa msvc: fix some Nmake warnings 11 years ago
Nguyen Anh Quynh c80d840ffc add XCore architecture 11 years ago
Nguyen Anh Quynh 6456481508 x86: add immediate operand (1) for SHL/SHR/ROR/ROL/SAR/SAL in detail mode & Intel syntax 11 years ago
Nguyen Anh Quynh 8c2e2db84e fix an warning on unused local variable in fill-insn() when CAPSTONE_DIET is defined 11 years ago
Nguyen Anh Quynh bb0744df5d do not initialize some local vars unnecessarily. this problem was introduced when we fixed C89 issues for MSVC 11 years ago
Axel 0vercl0k Souchet 84fecf2f99 added the debug configuration + correct the macro name for consistency 11 years ago
Axel 0vercl0k Souchet 605faf1db9 moved the hardcoded macros in the vcproj & just disable the warning for the crt 11 years ago
Nguyen Anh Quynh 42706a39e2 indentation with tab 11 years ago
Axel 0vercl0k Souchet 779d4c75d9 first changes to get a successfully compiled version of capstone on VS2012 11 years ago
Giovanni Condello 95657e0ca9 cs.c : Conform to original indentation rules 11 years ago
Giovanni Condello a715df17a9 Do not access instructions details if the instruction is marked as SKIPDATA or if the details are NULL 11 years ago
Nguyen Anh Quynh 1dbc9593aa x86: use strncpy() to update instruction mnemonic 11 years ago
Nguyen Anh Quynh a5ffdc3a80 x86: properly handle LOCK/REP in the core, so remove buch of hacks 11 years ago