Commit graph

1117 commits

Author SHA1 Message Date
oddcoder
19992a16c1 treating #error as if it was #warning in to
added test https://github.com/radare/radare2-regressions/pull/335
the bug can be re generated by parsing header with a #error in there
the compile in the normal case will issue an error and terminate
but since no compilation is done we need to proceed parsign the file
and treating the errors as warning just to be able to get all the types
in the given file.
2016-03-16 10:41:49 +01:00
Álvaro Felipe Melchor
21ea036a3c add patch to fix oob write in capstone 2016-03-07 00:18:25 +01:00
pancake
ddde978a0e Update capstone from git 2016-03-06 23:46:01 +01:00
pancake
a9027bae61 Update capstone and rabin2 manpage for -V 2016-03-04 01:20:33 +01:00
pancake
6c1e2c3aef Aim to fix the tcc build 2016-02-28 22:39:44 +01:00
pancake
f09f4770b3 Update configure script and fix type punned issues in tcc 2016-02-06 23:14:05 +01:00
pancake
b5f3b0fc7f Bump sdb 2016-02-27 15:29:02 +01:00
pancake
972f23a2d2 Use HEAD instead of @ to avoid issues with ancient gits 2016-02-27 15:10:34 +01:00
pancake
14dac03efe Update /m from 1.0.4 to 1.1.1 2016-02-26 14:34:25 +01:00
pancake
4a3cc9a359 Add sync target in enyo/Makefile 2016-02-26 13:33:33 +01:00
pancake
36a61b6f10 Optimize a70caf7160 2016-02-24 18:09:30 +01:00
pancake
f76d9811f7 sdb_fmt_tobin returns the number of items and fixes a double-alloc 2016-02-24 18:06:49 +01:00
William Robinet
bc3425e73d Fix zlib typos 2016-02-16 23:21:25 +01:00
William Robinet
adbe0d6b76 Fix jquery typos 2016-02-16 23:21:24 +01:00
William Robinet
0c7cacc2dc Fix typos 2016-02-16 23:21:24 +01:00
pancake
79c09b4356 Update capstone and fix m68k.cs plugin struct 2016-02-15 19:05:03 +01:00
pancake
636e0d6473 Update sdb from git to fix a crash on windows 2016-02-15 19:01:50 +01:00
Ido Yariv
8ee54db24e Rewrite remote gdb packet handling
This patch addresses several issues with the current implementation,
including:
- Excessive recursions
- Incorrect handling of the escape character
- Buffer size limitations
2016-02-05 17:24:00 +01:00
pancake
751bad6820 Parametrize git 2016-02-03 13:22:05 +01:00
pancake
805e3f26e8 Fixes for lldb/debugserver on x86-64 2016-02-03 12:09:58 +01:00
Anton Kochkov
f931cc30cb Fix Mingw32 build 2016-02-03 13:46:36 +03:00
Ido Yariv
cba51be5b8 Skip first packet when connecting to gdbserver
QEMU seems to send a T02thread message upon connection. This can get the
client side out of sync wrt requests & responses.

To work around this, read a packet after a connection is made. This
could time out, but that should be harmless.
2016-02-03 11:29:54 +01:00
Ido Yariv
0952fd0815 Avoid needless polling on incoming gdb packets
In case the packet checksum is received, there's little point in
continuing to poll for data.
2016-02-01 12:23:52 +01:00
pancake
44a86928cc Fix some of the warnings in #4013 2016-01-27 03:14:19 +01:00
pancake
289aece1f9 More code cleanup for gdm debugger plugin 2016-01-27 01:56:24 +01:00
pancake
a5409417ba capstone patch is non interactive 2016-01-23 21:47:01 +01:00
Anton Kochkov
94b496eaf6 Fix shlr/zip for Mingw32 2016-01-22 22:57:48 +03:00
pancake
0d0e4e985d Fix support for capstone3 2016-01-22 20:53:15 +01:00
pancake
d852ed1a23 Use sync ajax in /m to avoid dupped stuff 2016-01-20 16:52:27 +01:00
pancake
5198c3b1a9 Bump capstone and sdb from git 2016-01-20 16:29:20 +01:00
pancake
5eea48f3a8 Fix #3915 - respect endianness in ? numstr 2016-01-11 01:39:15 +01:00
pancake
a362dcf6d9 Update sdb and fix more null derefs caused by mem exhaustion 2016-01-11 00:24:18 +01:00
pancake
3ac5ccbbe1 Fixes for the LDR ARM instruction (wip) 2016-01-05 01:02:33 +01:00
pancake
e56be2fbd5 More multi-arch static build archive fixes for iOS/OSX/tvOS/WatchOS/*OS 2015-12-28 18:31:05 +01:00
pancake
9a9617cdfd Bump capstone 2015-12-24 16:20:48 +01:00
jvoisin
3727f0794d Change the anti pattern if (A) free (A); for free (A); 2015-12-20 19:28:39 +01:00
alvaro_fe
a6e4d6b93e Fix #838 2015-12-16 11:40:23 +01:00
Carolina Fernandez
c955d4834f webui (m): enforcing foreground darker text color on hover (as expected) 2015-12-14 00:03:34 +01:00
Carolina Fernandez
7df9d7e2f0 webui (p): using 'pointer' cursor for top of lists in 'Strings' and 'Types' submenus 2015-12-14 00:03:33 +01:00
Carolina Fernandez
ec19819879 webui (p,m): using 'pointer' cursor for addr. or links in left menu 2015-12-14 00:03:33 +01:00
pancake
1a4785e7c7 Update capstone from git 2015-12-08 21:58:25 +01:00
François Revol
797a2efc81 C89
(duplicate ; is treated as an empty statement)
2015-12-07 21:48:44 +01:00
François Revol
8439c5f683 Only use gcc's visibility attribute starting from 4.0
cf. https://gcc.gnu.org/wiki/Visibility#Step-by-step_guide
2015-12-07 21:48:44 +01:00
lzmths
1e32eaf4aa Refactoring conditional directives that break parts of statements. 2015-12-03 12:35:10 +01:00
pancake
40e08dbd89 Get rid of _Bool 2015-12-01 12:39:12 +01:00
pancake
4e9916942c Update capstone 2015-11-28 11:42:28 +01:00
Álvaro Felipe Melchor
d8b269f11f Fix last covs 2015-11-24 21:53:25 +01:00
pancake
ccfee9fcca Fix many important issues reported by clang-analyzer 2015-11-22 11:27:45 +01:00
pancake
9056a608cb More Java build fixes 2015-11-20 16:53:58 +01:00
pancake
5f84e0953c More java cleanup and early fail to avoid overflows 2015-11-20 16:39:12 +01:00
pancake
f188ef836e Fix java build 2015-11-20 16:08:24 +01:00
pancake
b5b8d3db62 Some random code cleanup in Java code (-140LOC) 2015-11-20 16:00:35 +01:00
pancake
6e67049d6f Fix infinite loop, bring back the java crash to greenify 2015-11-20 14:46:23 +01:00
Anton Kochkov
e25c7b33d3 Fix x86.udis on Cygwin 2015-11-20 13:48:23 +03:00
pancake
4d4db25181 Fix another java crash reported by @revskills 2015-11-20 00:42:44 +01:00
pancake
2b682cf927 Simplify scan-build script 2015-11-18 10:33:59 +01:00
pancake
18604cded8 Update capstone from git-next 2015-11-15 11:08:07 +01:00
pancake
5f8c35a7dd Fix small warning 2015-11-13 22:38:07 +01:00
pancake
089edbc821 Update capstone from git 2015-11-13 18:31:06 +01:00
pancake
a411b06b59 Fix clang-analyzer script 2015-11-09 22:28:21 +01:00
pancake
55800c1ed7 Fix r_str_ndup 2015-11-09 21:54:57 +01:00
pancake
e37ada9096 Fix some asan issues with latest rbin changes in dex 2015-11-09 18:51:45 +01:00
pancake
164dcada3b More RBin memory usage optimizations 2015-11-09 12:12:18 +01:00
pancake
aaccaea40b Update sdb to get lower memory consumption 2015-11-09 05:07:53 +01:00
pancake
45de9bc433 Shrink Imports and Strings RBin memory footprint 2015-11-09 04:41:31 +01:00
pancake
baf63a0cba Reduce RBinSymbols memory (smaller footpronum) 2015-11-09 03:41:07 +01:00
pancake
9c9bb2dbd5 Memory optimization for flags (-70%) + some warnfixes + sdb-sync 2015-11-08 23:38:42 +01:00
pancake
5f1c26715a Update SDB 2015-11-05 17:43:01 +01:00
pancake
eabffa1dba Fix 7cc0970 java crash 2015-11-05 12:49:27 +01:00
Álvaro Felipe Melchor
c928bd96c3 Fix issues reported by clang-analyzer 2015-11-02 18:22:14 +01:00
pancake
b0ab964303 More vulnfixes reported by clang-analyzer 2015-11-02 12:44:06 +01:00
pancake
96d29f0eac Fix some compiler warnings in the capstone makefile 2015-11-01 01:03:42 +01:00
pancake
af083cd2a7 Let the java code leak until properly rewritten 2015-10-31 12:14:42 +01:00
pancake
691e0c8c1a Fix latest COVs 2015-10-31 12:06:40 +01:00
Álvaro Felipe Melchor
5543f73cb1 Fix some covs 2015-10-29 23:39:49 +01:00
pancake
22c277bbb7 Bump sdb to fix r_offsetof 2015-10-28 10:33:06 +01:00
skuater
cdfb82cfd3 Fix r2pipe to allow more data transmision at windows 2015-10-28 10:12:38 +01:00
xambroz
d448260816 build cleanup focused on possibility to control the lib directories with the build parameters
needed mainly for RedHat/Fedora builds
2015-10-27 03:26:45 +01:00
Álvaro Felipe Melchor
0e21163f8e Fix crash java 5a1a113 by revskills 2015-10-25 16:59:06 +01:00
pancake
9ff2cb4e5b Fix #java #parser regression introduced in 7a1b6516c1 2015-10-25 02:31:42 +02:00
pancake
0c1345028f Fix 8338cc1424 from @revskills 2015-10-24 23:36:26 +02:00
Anton Kochkov
17750b5e03 Fix AVR regprofile, disable memset optimization 2015-10-24 01:25:25 +03:00
pancake
2ecc0f9a02 Fix crash for another @revskills fuzzed java class 2015-10-21 23:54:38 +02:00
pancake
4d157c3ca7 Fix JFS warning 2015-10-21 16:36:19 +02:00
pancake
2fab2fcdbe Fix java crash 2015-10-21 15:42:36 +02:00
pancake
78cb412a6d Fix a null deref in some class fuzz case 2015-10-21 12:48:16 +02:00
Anton Kochkov
d5108a8130 Update SDB (windows macro) 2015-10-21 12:53:35 +03:00
pancake
6c487835f3 More CSP fixes to get into the FxOS marketplace 2015-10-20 17:26:13 +02:00
pancake
d959d5bda5 Fix some CSP issues in the material webui 2015-10-20 15:39:59 +02:00
pancake
e8859baeae Material goodies for fxos 2015-10-20 12:51:28 +02:00
pancake
6ed80ae39b Update sdb and rename rmkdir->mkdirp 2015-10-19 00:25:39 +02:00
pancake
e66b5bff8d Update sdb from git 2015-10-16 12:54:44 +02:00
Kamil Rytarowski
d0ed0355e6 Don't copy lib.a to lib.${EXT_AR} for EXT_AR=a
Caught on NetBSD.
2015-10-15 15:41:04 +02:00
pancake
66a7fa9544 Fix support for Safari in the material webui 2015-10-12 18:58:28 +02:00
pancake
a3853aeeac Add support for webfonts in chrome (ttf) 2015-10-11 13:16:17 +02:00
pancake
30bf2939a8 Use woff2 for icons in /m 2015-10-11 05:21:41 +02:00
pancake
fa56034a64 Avoid online resources in /m 2015-10-11 04:27:50 +02:00
pancake
747c7bbacb More fixes for io.mach.write 2015-10-11 03:07:53 +02:00
Anton Kochkov
5a3dab0a86 Fix the build 2015-10-10 00:27:42 +03:00
XVilka
720341c2df Improve -fPIC handling, take 2 2015-10-09 22:24:15 +03:00
XVilka
5a6913e848 Improve -fPIC handling a bit 2015-10-09 19:48:16 +03:00
XVilka
381c9fbd6a Unify -fPIC handling, improve windows building 2015-10-09 18:58:03 +03:00
pancake
7f6659722e Update capstone and fix two covs in anal.x86.cs 2015-10-09 11:48:45 +02:00
gk
a39acdd25e Need -lutil for forkpty on *BSD, Android 2015-10-08 12:56:11 +02:00
pancake
58fd60b01d Fix cov, upgrade capstone 2015-10-07 13:08:23 +02:00
Anton Kochkov
0e4a161aea Do not use -MMD option in SDB for TCC 2015-10-07 01:42:34 +03:00
Anton Kochkov
82eed6f2a5 More standard C and TCC fixes 2015-10-06 01:29:26 +03:00
Anton Kochkov
811c493045 Move __attribute__(()) in the right place 2015-10-06 01:13:02 +03:00
Anton Kochkov
6204f2a59d Remove erringly written semicolon in structure 2015-10-06 00:46:44 +03:00
Anton Kochkov
06345462de Fix wind TCC and Mingw builds 2015-10-06 00:06:52 +03:00
Anton Kochkov
1b3f471920 Fix a typo for shlr/tcc compilation 2015-10-05 19:02:30 +03:00
pancake
afb96ab64e Two minor fixes for rabin2 -zzz and webui/m 2015-10-05 02:01:12 +02:00
pancake
ddc3de9c14 Add fix for the capstone x86-uninit-prefix bug 2015-10-04 23:47:54 +02:00
Kamil Rytarowski
a521fb9b9d Fix array subscript vulnerability
match.c: In function 'mycmp':
match.c:27:3: warning: array subscript has type 'char' [-Wchar-subscripts]
   if (tolower(a[i]) == tolower(b[j])) {
   ^
match.c:27:3: warning: array subscript has type 'char' [-Wchar-subscripts]

Problem caught on NetBSD.
2015-10-03 12:43:37 +02:00
pancake
1f3972b141 Update capstone from next 2015-10-03 12:39:33 +02:00
pancake
1f165c6012 Fix some compilation warnings 2015-10-01 18:33:37 +02:00
pancake
876a4052be Initialize stack register in 'aeim' 2015-10-01 12:04:58 +02:00
pancake
ff0e2724a1 Debugger, Write, HVSplit in material WebUI and more 2015-09-25 03:57:48 +02:00
pancake
7611525ca3 Avoid /m zoom in mobile browsers 2015-09-24 16:46:11 +02:00
pancake
cb6d71d6d5 More fixes in /m. Update .min files 2015-09-24 16:35:55 +02:00
pancake
6ae641477a Enhaced script panel in /m 2015-09-24 13:24:31 +02:00
pancake
cd767ccaf4 Fix Android build 2015-09-24 03:36:06 +02:00
raulsiles
a07056eaa4 Fixed message that says where radare2 has been installed (HOME/bin) 2015-09-23 16:27:06 +02:00
pancake
df0bd3afb0 windbg cleanup (-100LOC) 2015-09-23 16:17:19 +02:00
pancake
39abb5f89c Update capstone from git 2015-09-23 02:01:08 +02:00
pancake
5449c8d889 Update sdb from git 2015-09-23 01:56:05 +02:00
pancake
b39116d21c Fix build on Linux 2015-09-22 02:41:54 +02:00
pancake
3614547d74 Fix CVE-2015-2331 in libzip 2015-09-22 00:59:01 +02:00
pancake
f3ea9e63fe Fix cygwin build for capstone 2015-09-17 12:34:22 +02:00
pancake
b86bf19c85 Fix #3051 - Honor CFLAGS everywhere and fix some windows/android warnings 2015-09-14 20:43:11 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
pancake
00c3342e04 Update capstone from git 2015-09-11 03:25:20 +02:00
pancake
da370f30aa make asm.esil.anal visible in /m webui 2015-09-10 04:42:50 +02:00
pancake
a5655dff9b A bit dsojson leak just to avoid a crash 2015-09-01 18:44:37 +02:00
pancake
7157cf92b7 Fix some covs 2015-09-01 11:24:09 +02:00
pancake
9c8c017f40 Fix #3192 - dsojson double free and code cleanup (-34LOC) 2015-08-31 21:58:59 +02:00
pancake
4322640635 Fix class method naming 2015-08-26 15:00:30 +02:00
Riccardo Schirone
eeef82c2b8 bin: use R_BIN_SCN_MAP flag when a section should be mapped by IO
- io/section: filter sections by looking at R_IO_MAP flag
- util/str: consider (m)apped flag when printing/parsing srwx info
2015-08-26 14:12:46 +02:00
jvoisin
8256955b59 Fix some gcc warnings 2015-08-24 21:29:12 +02:00
pancake
0b8f25e4f4 Update capstone from next 2015-08-24 17:31:09 +02:00
pancake
7c3ef24314 Delegate dmm logic into the native plugin.
- Add native iOS/OSX support to list modules
- Generic fallback used for the rest of platforms
- Update sdb to fix ~{}
- Fix ARM64 analysis typo issue
2015-08-24 01:29:35 +02:00
pancake
e774d332b7 Fix #3082 - Add support for MASM syntax in x86.cs 2015-08-21 15:29:37 +02:00
Anton Kochkov
1eb6dfa61e Add AVR in gdb:// 2015-08-20 01:58:02 +03:00
pancake
43f71e0c92 Update capstone, capstone-patches, sdb and some CFLAGS honoring fixes 2015-08-19 14:19:24 +02:00
jvoisin
145d8dd5ae Fix a few warnings 2015-08-18 16:21:21 +02:00
pancake
6ced6fa8b4 Refix binfile path issue and remove unused code in dsojson 2015-08-16 22:41:58 +02:00
pancake
7e22671ee6 Update capstone 2015-08-14 14:19:16 +02:00
pancake
8293f75ce9 Add temporary patch to fix capstone x86-16 issue 2015-08-13 20:20:06 +02:00
pancake
fa6f91895f Reverted capstone commit is conflicting, lets verify with latest changes 2015-08-13 16:55:58 +02:00
pancake
3981b48a7c Update capstone to fix the sparc segfault 2015-08-13 16:53:42 +02:00