Commit Graph

1430 Commits

Author SHA1 Message Date
Nguyen Anh Quynh 476d5ad7a5 msvc: disable warning on strcpy() 2014-06-17 15:09:59 +08:00
Nguyen Anh Quynh cae09bf543 replace offset_of with offsetof from stddef.h 2014-06-17 14:58:39 +08:00
Nguyen Anh Quynh 4fe59955d6 python: test_detail.py print groups with space delimiter 2014-06-17 13:59:08 +08:00
Nguyen Anh Quynh ebe2443b9b arm: some special instructions need to have numerical operand added manually in printInstruction() 2014-06-17 13:56:01 +08:00
Nguyen Anh Quynh eccb9da7a8 arm64: zeroout a whole cs_arm64 struct of MCI in *getInstruction(). 2014-06-17 13:34:25 +08:00
Nguyen Anh Quynh aaddb25453 no need to zeroout insn_cache in make_id2insn() 2014-06-17 13:32:37 +08:00
Nguyen Anh Quynh 73bbbb3800 arm: add ASRS, LSRS, VCLE, VCLT instructions. update Python & Java bindings at the same time 2014-06-17 13:29:54 +08:00
Nguyen Anh Quynh 8693fcdc99 arm: correct operand setup for REG type in printAddrMode3OffsetOperand() 2014-06-17 13:28:33 +08:00
Nguyen Anh Quynh 2a461ed422 arm: zeroout a whole cs_arm struct in *getInstruction(). this makes sure operand of REG type has shift type = 0 by default 2014-06-17 13:27:38 +08:00
Nguyen Anh Quynh 9672cd259a update README 2014-06-16 22:06:44 +08:00
Nguyen Anh Quynh 6217f36d12 update README 2014-06-16 18:38:32 +08:00
Nguyen Anh Quynh 64091f77e0 resize total memory allocated for @insns to just the right size for cs_disasm_ex() 2014-06-16 18:37:11 +08:00
Nguyen Anh Quynh 9cf88119fb x86: InternalInstruction@xAcquireRelease should be initialized to 0 (FALSE) 2014-06-16 18:32:34 +08:00
Nguyen Anh Quynh fec5539f3a use calloc() to zerout insn_cache in make_id2insn. this makes sure uninitialized data zero 2014-06-16 17:31:43 +08:00
Nguyen Anh Quynh 495295ecd4 MCInst_Init() is arch-independent 2014-06-16 15:54:32 +08:00
Nguyen Anh Quynh 370b7d7d4e remove unused MCInst/MCOperand functions 2014-06-16 14:57:07 +08:00
Nguyen Anh Quynh 264ca37ad8 MCInst_addOperand2() does not need to return value 2014-06-16 14:52:09 +08:00
Nguyen Anh Quynh 215e76b223 ppc: use MCInst_insert0() instead of MCInst_insert() to avoid malloc/free 2014-06-16 14:47:43 +08:00
Nguyen Anh Quynh d06f3d662b xcore: use CreateImm0() & CreateReg0() to create MCOperand* to avoid using malloc/free 2014-06-16 14:35:08 +08:00
Nguyen Anh Quynh 88fca42a5f xcore: use SStream_concat0() instead of SStream_concat() for simple string processing whenever possible 2014-06-16 14:30:19 +08:00
Nguyen Anh Quynh 7062988855 systemz: use CreateImm0() & CreateReg0() to create MCOperand* to avoid using malloc/free 2014-06-16 13:09:15 +08:00
Nguyen Anh Quynh bddd215099 systemz: use SStream_concat0() instead of SStream_concat() for simple string processing whenever possible 2014-06-16 13:02:41 +08:00
Nguyen Anh Quynh 3d3b6cec01 sparc: use CreateImm0() & CreateReg0() to create MCOperand* to avoid using malloc/free 2014-06-16 12:57:02 +08:00
Nguyen Anh Quynh 9b91de0ae3 sparc: use SStream_concat0() instead of SStream_concat() for simple string processing whenever possible 2014-06-16 12:51:07 +08:00
Nguyen Anh Quynh 7f945d3655 ppc: use CreateImm0() & CreateReg0() to create MCOperand* to avoid using malloc/free 2014-06-16 12:34:02 +08:00
Nguyen Anh Quynh 7f15f67544 ppc: use SStream_concat0() instead of SStream_concat() for simple string processing whenever possible 2014-06-16 12:11:50 +08:00
Nguyen Anh Quynh f08b83ddba mips: use CreateImm0() & CreateReg0() to create MCOperand* to avoid using malloc/free 2014-06-16 12:04:25 +08:00
Nguyen Anh Quynh 0c764d4a70 mips: use SStream_concat0() instead of SStream_concat() for simple string processing whenever possible 2014-06-16 11:53:08 +08:00
Nguyen Anh Quynh d489a679f4 arm64: use CreateImm0() & CreateReg0() to create MCOperand* to avoid using malloc/free 2014-06-16 11:46:20 +08:00
Nguyen Anh Quynh cbb33583b3 arm64: use SStream_concat0() instead of SStream_concat() for simple string processing whenever possible 2014-06-16 11:16:30 +08:00
Nguyen Anh Quynh 730e0c0511 update README on Status 2014-06-16 10:58:58 +08:00
Nguyen Anh Quynh 97589e9227 update README 2014-06-15 23:02:46 +08:00
Nguyen Anh Quynh 842457e079 update README 2014-06-15 22:58:45 +08:00
Nguyen Anh Quynh db3c00c0ff consider tab as delimiter char in asm bufffer in fill_insn() 2014-06-13 11:16:53 +07:00
Nguyen Anh Quynh 5493c87c27 Merge branch 'next' of https://github.com/aquynh/capstone into next 2014-06-12 13:04:42 +07:00
Nguyen Anh Quynh a8cef7e5e8 python: fix an use-after-free issue. bug reported by Luis Miras 2014-06-12 13:01:22 +07:00
Nguyen Anh Quynh 02f817680b python: fix an use-after-free issue. bug reported by Luis Miras 2014-06-12 13:00:40 +07:00
Nguyen Anh Quynh d025b6334e Merge pull request #145 from schwoop/next
Fixed SPARC compilation
2014-06-10 18:37:40 +07:00
schwoop 3a7c136558 Fixed SPARC compilation 2014-06-10 13:24:53 +02:00
Nguyen Anh Quynh 9678705d57 arm: convert MCOperand_CreateReg() to MCOperand_CreateReg0() to avoid malloc/free 2014-06-10 13:59:55 +07:00
Nguyen Anh Quynh 748687df46 arm: convert the left-over MCOperand_CreateImm to MCOperand_CreateImm0 2014-06-10 09:18:39 +07:00
Nguyen Anh Quynh 21e5c0439e Merge branch 'next' into fast 2014-06-10 01:13:36 +07:00
Nguyen Anh Quynh 0f648ea3e8 arm: use CreateImm0() & CreateReg0() to create MCOperand* to avoid using malloc/free to improve performance 2014-06-10 01:01:23 +07:00
Nguyen Anh Quynh 8c1104b567 arm: do not use markup 2014-06-10 00:39:06 +07:00
Nguyen Anh Quynh dd9225b930 arm: use SStream_concat0() for SStream_concat() whereever possible for better performance 2014-06-10 00:37:53 +07:00
Nguyen Anh Quynh b95647d2c1 systemz & xcore: create details only when detail mode is ON. this fixes some crashes in tests/test 2014-06-09 18:49:37 +07:00
Nguyen Anh Quynh 69582d71ae initialize cs_insn.detail by properly zero-out right members for each arch 2014-06-09 17:50:01 +07:00
Nguyen Anh Quynh 29fd0f6405 fix all the code in other non-X86 archs after the change made by commit 5329a6ffd4 2014-06-09 08:00:18 +07:00
Nguyen Anh Quynh 12f93cba5e use malloc() rather than calloc() for handle->insn_cache in make_id2insn() 2014-06-09 07:16:55 +07:00
Nguyen Anh Quynh c88d9929ae cs_disasm_ex(): properly calculate insn_cache when reallocating total variable 2014-06-09 01:59:00 +08:00