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
Nguyen Anh Quynh
af286d4914
sparc: fix issue #1221 on double printing imm operand
2018-07-24 14:53:00 +08:00
Nguyen Anh Quynh
76c1c3c4e9
merge next to master
2018-07-20 12:36:50 +08:00
Catena cyber
aad3aca3e7
Use printint functions from SStream ( #1165 )
...
in perticular, not to overflow -INT_MIN
2018-06-06 06:31:53 +08:00
Nguyen Anh Quynh
e5101ab48a
indentation
2018-04-03 22:36:26 +08:00
Google AutoFuzz Team
4c8b187aee
Fixing #1061
...
Updating the fix provided in commit 5b55115c42
2018-03-22 17:30:00 -07:00
l0stb1t
04b461a76d
Fixed #1060 #1061 #1062 ( #1079 )
2018-03-12 22:23:48 +07:00
Nguyen Anh Quynh
cbdea7ce19
sparc: fix relative branch target for Sparc64
2017-12-27 14:24:18 +08:00
Nguyen Anh Quynh
6c1c82bdd7
sparc: fix #1061
2017-12-15 10:12:54 +08:00
Richard Henderson
5423b215bf
Constify backend data ( #1040 )
...
* Constify string literals
Use -Wwrite-strings to force string literals to be of
type "const char[]", then fix up all warning fallout.
* Constify common infrastructure
Step one in allowing backend data to be readonly.
Minimal changes to backends for now; just set all pointers
in common structs that aren't modified to const.
* Constify AArch64 backend
Section size changes within libcapstone.so are
-.rodata 602587
-.data.rel.ro 228416
-.data 1003746
+.rodata 769051
+.data.rel.ro 241120
+.data 824578
* Constify ARM backend
Section size changes within libcapstone.so are
-.rodata 769051
-.data.rel.ro 241120
-.data 824578
+.rodata 959835
+.data.rel.ro 245120
+.data 629506
* Constify Mips backend
Section size changes within libcapstone.so are
-.rodata 959835
-.data.rel.ro 245120
-.data 629506
+.rodata 1069851
+.data.rel.ro 256416
+.data 508194
* Constify PowerPC backend
Section size changes within libcapstone.so are
-.rodata 1069851
-.data.rel.ro 256416
-.data 508194
+.rodata 1142715
+.data.rel.ro 272224
+.data 419490
* Constify Sparc backend
Section size changes within libcapstone.so are
-.rodata 1142715
-.data.rel.ro 272224
-.data 419490
+.rodata 1175227
+.data.rel.ro 277536
+.data 381666
* Constify SystemZ backend
Section size changes within libcapstone.so are
-.rodata 1175227
-.data.rel.ro 277536
-.data 381666
+.rodata 1221883
+.data.rel.ro 278016
+.data 334498
* Constify X86 backend
Section size changes within libcapstone.so are
-.rodata 1221883
-.data.rel.ro 278016
-.data 334498
+.rodata 1533531
+.data.rel.ro 281184
+.data 19714
* Constify XCore backend
Section size changes within libcapstone.so are
-.rodata 1533531
-.data.rel.ro 281184
-.data 19714
+.rodata 1553026
+.data.rel.ro 281280
+.data 40
2017-10-22 08:45:40 +08:00
Satoshi Tanda
c7b00b3756
suppress MSVC code analysis (PREfast) warnings
...
Signed-off-by: Satoshi Tanda <tanda.sat@gmail.com>
2016-09-28 07:33:39 -07:00
Satoshi Tanda
d7e38cd903
suppress MSVC code analysis (PREfast) warnings
...
Signed-off-by: Satoshi Tanda <tanda.sat@gmail.com>
2016-09-27 08:08:58 -07:00
tandasat
e36384e224
Merge remote-tracking branch 'upstream/next' into next
2016-05-11 22:52:34 -07:00
tandasat
d4ef430b33
port Windows driver support
2016-05-11 21:48:32 -07:00
tandasat
8d377f3b7b
address warnings with capstone_static_winkernel
2016-05-04 05:54:28 -07:00
Nguyen Anh Quynh
977e893bc2
sparc: fix target address of CALL instruction. issue #653
2016-04-27 11:15:23 +08:00
NighterMan
72ee3c9b15
sparc: Improved displacement decoding for banching instructions
2015-04-14 10:00:22 +08:00
NighterMan
b01881b432
Improved displacement decoding for sparc banching instructions
2015-04-11 04:55:16 +02:00
NighterMan
32a0ab7f50
Sparc conditional branches displacement fix
2015-04-10 04:47:42 +02:00
Nguyen Anh Quynh
bfcaba5851
2015
2015-03-04 17:45:23 +08:00
Nguyen Anh Quynh
273c6f4a9e
arm64 & sparc: fix some warnings reported by MSVC
2015-01-13 14:33:09 +08:00
Nguyen Anh Quynh
b6f4c1da05
sparc: add missing ICC/XCC registers in operands[] for some alias instructions. bug reported by @pancake
2014-11-11 07:02:13 +08:00
Nguyen Anh Quynh
1caeee48aa
sparc: absolute address for Bxx instructions. issue reported by @pancake
2014-11-10 23:38:48 +08:00
Nguyen Anh Quynh
e16813d8e8
sparc: get absolute address for CALL. issue reported by @pancake
2014-11-10 22:20:00 +08:00
Nguyen Anh Quynh
1738a3e6bf
sparc: handle some alias instructions & more details for some special instructions. update Python & Java bindings accordingly with new instructions & registers
2014-09-17 00:01:04 +08:00
Nguyen Anh Quynh
4b6b15fcb1
fix more MSVC warnings
2014-08-26 15:57:04 +08:00
Nguyen Anh Quynh
a726402513
sparc: update core. this added/removed some instructions & groups. updated Python & Java bindings accordingly
2014-08-15 18:29:17 +08:00
Nguyen Anh Quynh
159ddbd99f
ppc: add new groups to group_name_maps[]
2014-08-15 16:35:12 +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
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
5d6383e335
sparc: SPARC_CC_ICC_N should not have the same value as SPARC_CC_INVALID. bug reported by Jason Oster
2014-05-25 13:48:06 +08:00
Nguyen Anh Quynh
6456481508
x86: add immediate operand (1) for SHL/SHR/ROR/ROL/SAR/SAL in detail mode & Intel syntax
2014-05-19 16:46:31 +08:00
Nguyen Anh Quynh
8598a219f3
enable arch code from source with CAPSTONE_HAS_* for MSVC to pick up
2014-05-14 11:26:41 +08:00
Nguyen Anh Quynh
a3c9bd678f
sparc: more fix to print negative numbers in more friendly way
2014-03-26 16:22:16 +08:00
Nguyen Anh Quynh
641be49c2f
sparc: fix mnemnonic for some alias instructions
2014-03-10 17:57:04 +08:00
Nguyen Anh Quynh
05e27138ae
core: add Sparc arch
2014-03-10 11:58:57 +08:00