pancake
eef94066a0
Fix some crashes for 9410
2018-02-18 03:08:17 +01:00
pancake
d5ec745276
Fix static linking by creating libr_shlr.a and stripping sdb and tcc from them
...
This exposes some implicit static linking of libs, and also shows that librz.a
can be removed or generalized into using the partial-ld appraoch.
Still issues with pkg-config because libr_shlr is only available as a static
library and can be used in libr_util.pc, creating an empty libr_shlr.${EXT_SO}
may simplify the problem but still a workaround.
It is dangerous to link against it results in much bigger builds
(also faster), which requires LTO to get adjusted sizes.
2018-02-18 01:47:07 +01:00
SkUaTeR
f8cf84e065
Fix some bugs ( #9403 )
...
* fixed some bugs
* format bug fix
* added MSVC version _time_stamp_to_str
* struct format
* adjusting output same as linux
2018-02-17 15:14:34 +08:00
Craig Ingram
cd7d7315d6
Change all asm.emu* to asm.emu.* ( #9272 )
2018-01-30 16:21:31 +01:00
whitequark
c816dc7e66
Don't try to build shared libraries if configured as --without-pic.
...
Specifically, avoid building all plugins as non-static objects,
as well as some supplementary libraries. In fact, a large amount
of plugins was already gated to build as shared objects only with
WITHPIC=1, but this was not done consistently.
This gating has been moved to */p/Makefile.
Building these shared objects is a waste of time and breaks
the --without-pic build unless CFLAGS is forced in the make
invocation.
2018-01-11 23:09:22 +01:00
pancake
5f55965f77
Update capstone and adjust invalid patch
2018-01-09 18:37:50 +01:00
Ziyaddin Sadigov
d4dd6fd5e6
Fix typo regarding byte size ( #9067 )
2017-12-27 18:33:58 +01:00
pancake
0b1e8eaecc
Fix almost all warnings from the msvc build
2017-12-19 00:18:39 +01:00
pancake
e24562a724
Update dict from sdb again
2017-12-14 11:24:46 +01:00
pancake
bf9c5f96d9
Upgrade sdb (renames mht to dict)
2017-12-13 03:07:22 +01:00
pancake
ce77004507
Update SDB and initial use of MHT for xrefs (disabled by default)
2017-12-11 18:00:14 +01:00
Srimanta Barua
2d2c38bb2c
add sp to mips profile ( #8958 )
2017-12-05 11:39:13 +01:00
pancake
7541f18a36
Fix crash in capstone-sparc
2017-11-30 00:30:06 +01:00
pancake
3978bd1ac5
Initial import of the /f webui
2017-11-29 04:09:23 +01:00
Srimanta Barua
a7af340174
Fixed double free in the gdbclient
2017-11-28 17:59:26 +01:00
pancake
869d629bee
Fix type punned pointers in windbg
2017-11-24 14:09:56 +01:00
pancake
9f12bb05cc
Fix last covs
2017-11-23 14:38:28 +01:00
Srimanta Barua
21abaf4b51
Changed to a more correct system for parsing xml ( #8863 )
2017-11-22 12:03:09 +01:00
pancake
d43d2f738d
Fix asm.immstr
2017-11-14 03:59:24 +09:00
pancake
3af92b04c3
Remove squash references (it's in extras) and add RFSPlugin.license
2017-11-08 00:49:29 +01:00
pancake
561630745b
Replace the zero-length array in iso9660 with a macro
2017-11-07 15:02:00 +01:00
pancake
69e1e99ff0
Do not use zero length arrays in iso9660
2017-11-07 14:40:19 +01:00
pancake
0c81ce3651
Fix uninitialized partition type issue in 'mp gpt'
2017-11-07 11:45:10 +01:00
Anton Kochkov
45dd7e13e9
Fix indentation for shlr/tcc
2017-11-07 16:16:01 +08:00
Anton Kochkov
53c8eeeb99
Add intN_t types
2017-11-07 16:16:01 +08:00
Anton Kochkov
a3c9088c79
TCC cleanup
2017-11-07 16:16:01 +08:00
pancake
20c0b83743
Avoid infinite loop in iso9660
2017-11-07 01:34:11 +01:00
pancake
7b96c1da23
Fix crash in iso9660 with rockridge extension
2017-11-07 00:52:19 +01:00
pancake
f873164060
Fix HFS plugin for r_fs
2017-11-06 22:28:01 +01:00
pancake
5f5b25ca8e
Fix crash in HFS for GRUB
2017-11-06 18:49:54 +01:00
pancake
f1aa3aa4d2
r2ify lz4 a bit
2017-11-06 04:28:59 +01:00
pancake
702afebc66
Fix Windows build and a bunch of scary warnings
2017-11-06 03:23:21 +01:00
Ren Kimura
1c8094bc9b
Add Initial support for the NSO Nintendo Switch static binaries
...
* Every sections in NSO binary are packed by LZ4. So I've added shlr/lz4 library too.
2017-11-05 11:40:16 +01:00
John Paul Adrian Glaubitz
04cd67f5ab
jemalloc: Add missing definition of LG_QUANTUM for m68k ( #8782 )
2017-11-04 21:12:41 +01:00
Daniel Corak
9f08ccbcc4
Build radare2 for all iOS archs and the simulator ( #8775 )
...
* Fix system() not available for iOS Simulator
* Embedding Bitcode should be set in sys/ios-sdk.sh. Removed unused code
* Supports now all available iOS archs and the simulator
2017-11-03 19:53:11 +01:00
Jose Diaz
e74aadad28
Renaming char_to_w32 => utf8_to_utf16
2017-11-03 10:27:18 +08:00
Jose Diaz
527ff71d41
Convert char to windows unicode
2017-11-03 10:27:18 +08:00
pancake
ef2965d3f8
Fix #6032 - Honor --without-pull for capstone and www-m
2017-10-20 03:19:55 +02:00
pancake
b261753d98
Update capstone and adjust patches
2017-10-19 18:23:37 +02:00
pancake
1519a12af1
Update capstone from git
2017-10-12 02:04:55 +02:00
Anton Kochkov
866263da40
Fix MSVC build
2017-10-11 10:35:16 +08:00
pancake
30d7267bcc
Fix sys/ios-cydia.sh build
2017-10-10 02:27:34 +02:00
pancake
42ce366601
Fix crash in m68k capstone disassembler
2017-10-09 15:58:08 +02:00
pancake
58e943d726
Update spp with all the fixes not backported
2017-10-09 12:19:17 +02:00
Anton Kochkov
d71823d4be
Fix typo
2017-10-09 17:23:10 +08:00
pancake
c71c1402a7
Update spp again for windows this time
2017-10-09 10:53:52 +02:00
Anton Kochkov
37a609bf5d
Fix AppVeyor - 2nd take
2017-10-09 12:06:13 +08:00
Anton Kochkov
e582c81f1e
Fix AppVeyor build
2017-10-09 11:56:38 +08:00
pancake
5db2e67490
Fix #8653 - Fix spp build for iOS and enhance ios-sdk.sh
2017-10-09 01:56:44 +02:00
Srimanta Barua
7c6a992df6
fix appveyor
2017-10-05 11:01:44 +02:00
Srimanta Barua
95b3a74052
don't make signal handler do much work
2017-10-05 11:01:44 +02:00
Srimanta Barua
5eebf1efba
sort of remove infinite loop
2017-10-05 11:01:44 +02:00
Srimanta Barua
852584ffac
simulavr (plus some general) gdb fixes
2017-10-05 11:01:44 +02:00
pancake
875a5692e0
Fix crash in tk -!!!! d'B%CCCC!9!!!!_
2017-09-30 18:34:19 +02:00
pancake
71a6177b8a
Fixes for the gdb-avr backend, lower min pkgtsz and fix tid<1 issue
2017-09-25 10:47:27 +02:00
pancake
b787a49d54
Fix stepping with Apple's debugerver
2017-09-23 00:06:04 +02:00
pancake
8520138afe
Fix buffer overflow issues in gdb-read operations
2017-09-22 23:56:49 +02:00
Srimanta Barua
3640a7cb8b
paged reading for gdb (otherwise it doesn't work on qemu) ( #8572 )
2017-09-20 13:33:45 +02:00
Srimanta Barua
915589b51d
cleaned up and corrected memory reading ( #8568 )
2017-09-19 15:02:49 +02:00
pancake
08f64793ea
Implement r_io_map_reset and new command omm
2017-09-13 00:23:26 +02:00
pancake
6d1be4ad06
Make r2k and gdb rwx by default
2017-09-12 01:26:38 +02:00
pancake
a5ae14ae48
Upgrade capstone dependency
2017-09-02 17:40:44 +02:00
Srimanta Barua
7071e51d1a
bring back a not-quite-infinite loop ( #8386 )
2017-08-30 23:51:12 +02:00
pancake
d67ecceea1
Fix infinite loop if connection is lost
2017-08-30 02:15:13 +02:00
pancake
2b181659f0
Fix regprofile parsing from remote lldb on ios-arm64
2017-08-30 01:17:39 +02:00
Giovanni
2740763886
Merging all cov fixes ( #8377 )
...
* 1356272 Resource leak
* 1356452,1356450 Resource leak
* flavour + strdup and fixed mistake
* 1361500 Resource leak
* 1360784 Resource leak
* 1367821 Resource leak
* removed missing allocated vars
2017-08-29 13:15:47 +02:00
alvarofe
bbca2d3dff
Trap before in anal_java to avoid continue execution
2017-08-29 00:12:14 +02:00
Srimanta Barua
bbda39982b
Added backtrace to gdb ( #8361 )
2017-08-28 16:40:12 +02:00
xarkes
77615dd4ef
Added sdb/msvc to sdb-sync
2017-08-28 14:04:56 +02:00
Giovanni
52826ff3ef
7 more coverity bugs fixed ( #8306 )
...
* 1379842/1379836 Resource leak
* 1379834 Resource leak
* 1379742/1379747/1379748/1379749/1379750/1379747/1379760 Resource leak
* 1379752 Resource leak
* 1379751 Double free
* 1379743 Use after free
* 1379624 Uninitialized scalar variable
* 1379332 Out-of-bounds read
2017-08-26 13:08:53 +02:00
pancake
6d18fca988
Update sdb again
2017-08-26 02:36:13 +02:00
pancake
c24192f834
Update sdb from git
2017-08-26 02:26:16 +02:00
Giovanni
7b40f7aed1
16 more bugs fixed. most are mem leaks. ( #8307 )
...
* 1379261/1379262 Resource leak
* 1379258/1379249 Resource leak
* 1379020 Resource leak
* 1351565/1351564 Logically dead code, 1379019 Uninitialized scalar variable, 1379014 Operands do not affect result
* 1379017 Resource leak
* 1379016 Resource leak
* 1379015 Resource leak
* 1377414 Resource leak
* 1376336 Resource leak
* 1375800 Resource leak
* 1373505/1373509/1373504 Resource leak
* 1373496 Resource leak
2017-08-24 17:20:39 +02:00
xarkes
7db09c8543
Ar fixes ( #8292 )
2017-08-24 13:37:20 +02:00
pancake
4dd45b73e9
Fix some last covs
2017-08-23 16:45:05 +02:00
pancake
0b88ef654f
More fixes in the output of 'o'
...
* Do not inverse the list
* Do not show maps in o output
* Fix om output
* Fix ar warnings
2017-08-23 12:55:10 +02:00
Srimanta Barua
b44ab3f9ef
wrong parenthesis on sizeof for the gdb xml code
2017-08-23 01:07:32 +02:00
xarkes
ee4f42d13e
Ar fixes (Added filename table)
2017-08-23 01:07:21 +02:00
pancake
94d8b8261a
Fix gdbclient xml issue
2017-08-22 23:27:19 +02:00
condret
2f201bded0
opsalamance - merge the big siol branch
...
- Thanks @MaskRay and @condret
2017-08-22 09:42:16 +02:00
pancake
2b89315b74
Fix jemalloc warnings
2017-08-20 23:29:21 +02:00
pancake
62b45bce07
More build fixes for android
2017-08-19 20:05:21 +02:00
pancake
d68d1fda83
Fix crash regression in fuzzed CLASS binary
2017-08-19 19:10:28 +02:00
pancake
29ca827cf2
Fix Android builds
2017-08-19 18:52:57 +02:00
pancake
622df1fdce
Fix windbg warnings
2017-08-19 17:39:49 +02:00
pancake
fd7dfad154
More fixes
2017-08-19 17:16:54 +02:00
pancake
f9073c1979
Fix some warns and off by 1 in x86.nz
2017-08-19 16:19:13 +02:00
pancake
084d70e539
Upgrade zlib from 1.2.8 to 1.2.11
2017-08-19 13:46:10 +02:00
pancake
a4742a684e
mingw32 fixes
2017-08-18 19:45:38 +02:00
pancake
df31f33d04
Fix more covs and warnings
2017-08-18 14:32:11 +02:00
Khairul Kasmiran
a347a80916
Fix jemalloc build on Windows
2017-08-17 10:46:17 +02:00
xarkes
49398de4ff
Meson fixes (SDB, linux, added io_ar)
2017-08-17 10:44:54 +02:00
xarkes
e900b49055
Added ar://
2017-08-17 14:38:43 +08:00
Srimanta Barua
637102385d
corrections, and switch to tid reported in stop reason
2017-08-15 21:46:22 +02:00
Srimanta Barua
d8099137be
switching threads
2017-08-15 21:46:22 +02:00
Srimanta Barua
9f02ca3af0
read packet waits, sends sigterm on ctrl-c. not yet done for windows
2017-08-15 21:46:22 +02:00
Srimanta Barua
9d5306a520
remove strlcpy (was breaking on windows)
2017-08-13 16:39:32 +08:00
Lowly Worm
d602844c09
fix unchecked copy from regname in gdb xml parser
2017-08-12 22:13:45 -07:00
Srimanta Barua
9d65eebb36
Additions to gdb xml parsing ( #8196 )
...
* load gdbr register array from xml
* fix (probably unimportant) memory leak
* parsing of flag types
* r2-indent
2017-08-12 10:36:46 +02:00
pancake
59a94ae59f
Fix #8084 - Honor colors in json_indent ~{}
2017-08-11 12:23:57 +02:00
pancake
53fb6d668d
Make jemalloc atomic.h be non-atomic for portability
2017-08-09 22:30:31 +02:00
SrimantaBarua
e115ba98c5
fixed xml reading bug for small packet sizes
2017-08-09 16:17:03 +02:00
xarkes
c1f6b29e8e
Windbg code cleaning
2017-08-08 18:45:11 +02:00
pancake
381f3a072b
Remove atomic_uint_least64_t from jemalloc's atomic.h
2017-08-07 12:15:55 +02:00
Srimanta Barua
ce94f8d711
Reading xml target description and parsing into r2 reg profile ( #8124 )
...
* send qXfer packet
* reading file includes
* parse
* r2-indent
* added missing profile = tmp2;
2017-08-05 12:22:02 +02:00
Srimanta Barua
b9695773ce
added =!detach, and replaced eprintfs with io->cb_printf ( #8125 )
...
* added =!detach, and replaced eprintfs with io->cb_printf
* keep error in eprintf
2017-08-04 19:18:43 +02:00
Rene Laemmert
261675ef3b
Make old gcc happy again ( #8128 )
2017-08-04 19:00:02 +02:00
xarkes
3da3958db8
Windbg FIX #7660 + typos ( #8126 )
2017-08-04 17:49:41 +02:00
xarkes
3d681b0fe5
Renamed windbg plugin ( #8117 )
2017-08-03 14:58:39 +02:00
pancake
97a38e6eea
More tweaks for the jemalloc support
2017-08-03 13:56:45 +02:00
pancake
e913c770f5
Fix build
2017-08-03 13:27:11 +02:00
Srimanta Barua
74c80f9e09
min-checks on gdb packet size ( #8106 )
2017-08-02 14:14:11 +02:00
pancake
bf8651454b
Avoid another divbyzero in gdb code
2017-08-02 13:28:07 +02:00
Srimanta Barua
7b5de5cb51
fix divide by zero ( #8100 )
2017-08-02 12:13:28 +02:00
Srimanta Barua
f6f5199ef6
let gdbserver select thread ( #8101 )
2017-08-02 12:10:43 +02:00
Srimanta Barua
9f9192232a
Fix a lot of incorrect 'garbage at end of packet' messages ( #8080 )
2017-08-01 11:40:33 +02:00
Srimanta Barua
d93977358d
Small gdb fixes, and added alternate way to get baddr ( #8055 )
...
* check if 'g' is supported before switching to reading regs using '?'
* stabilize gdbserver a bit more
* added ability to get baddr even if we can't read memory map (if qOffsets packet is supported)
2017-07-29 17:58:20 +02:00
xarkes
221b312046
Meson builds generates sdb files (+build clean) ( #8035 )
2017-07-26 23:15:41 +02:00
Srimanta Barua
277771156c
fix gdb covs ( #8036 )
2017-07-26 20:20:07 +02:00
Srimanta Barua
058d5fe7b0
More fixes for when process dies ( #8032 )
2017-07-26 15:50:55 +02:00
Srimanta Barua
d05f865f77
read registers from lldb ( #8004 )
2017-07-25 16:28:58 +08:00
pancake
fb4294c36b
Fix #8000 - null deref in pkcs7
2017-07-24 15:32:05 +02:00
pancake
76448886cb
Looks like dex needs lit too, and force n in cspatch
2017-07-24 13:38:40 +02:00
Srimanta Barua
6f25437342
Handling of more stop reasons, cleanly close gdb connection ( #7998 )
2017-07-24 12:39:53 +02:00
Srimanta Barua
e4cce06671
Added reading of executed file name to gdbserver
2017-07-21 20:06:41 +02:00
Guillaume Valadon
ea8adc48da
Use void in prototypes ( #7974 )
2017-07-20 14:50:13 +02:00
Srimanta Barua
6f2eb2843b
Added command to get/set packet size for gdb io system ( #7961 )
...
* Added pktsz to io system
* Add env var to control gdb packet size
2017-07-20 11:57:29 +02:00
pancake
2829d9e398
Detect kotlin in java classes
2017-07-19 13:55:05 +02:00
pancake
770f3e752f
Fix #7932 - Support relative addresses in java assembler
2017-07-17 12:17:53 +02:00
Srimanta Barua
8c6a05dd58
Add reporting of debug info ( #7941 )
2017-07-17 11:39:34 +02:00
Srimanta Barua
4916b318d8
fix memleak in gdbserver ( #7940 )
2017-07-17 09:30:48 +02:00
Srimanta Barua
7858bb970d
Un-hardcode reporting of stop reason, and add read/write of single reg to gdbserver ( #7938 )
...
* Better reporting of stop reason by gdbserver
* Added read/write of single reg
2017-07-17 08:51:30 +02:00
Srimanta Barua
b59276938e
Added debugging of protocol messages in gdbserver ( #7931 )
2017-07-16 12:01:17 +02:00
pancake
6e1f9c981e
Fix latest covs
2017-07-14 17:36:21 +02:00
Srimanta Barua
066e85554e
gdb get exec file name, and threads list ( #7908 )
...
* Thread list
* Added check if thread is dead
* Added exec_file command to io system
2017-07-13 00:33:53 +02:00
pancake
1b6cfb68bd
Fix some memleaks, warnings and null derefs pointed out by clang analyzer
2017-07-10 11:20:03 +02:00
Srimanta Barua
47a081c5df
cleanup redundant gdbr_send_command ( #7890 )
2017-07-09 20:55:15 +02:00
Srimanta Barua
9e437f861b
Added qRcmd monitor commands to io_gdb ( #7877 )
...
* Added qRcmd to io_gdb
* Printing reply to pkt and prompting for ack if required. Also adhering to r2 coding conventions
2017-07-08 10:29:11 +02:00
pancake
39e63acfe0
Fix last COVs (double free and memleak in grub code)
2017-07-05 13:13:53 +02:00
Sven Steinbauer
b61e278c01
Conditionally remove sh for iOS
2017-07-05 13:01:02 +02:00
j123123
f3f71b195b
Add NULL check at shlr/sdb/src/json/api.c ( #7859 )
2017-07-05 06:52:56 +02:00
Srimanta Barua
6d5585fc68
Fix for incorrect pc after breakpoint, in x86 gdb (using signal 5)
2017-07-04 19:44:09 +02:00
pancake
c57997e76e
Fix r2_hbo_grub_memmove ext2 crash
2017-07-04 19:38:33 +02:00
pancake
8c3035acc2
Fix ios-sdk builds
2017-07-04 19:16:24 +02:00
Srimanta Barua
d453d7430f
pid/tid specific continue with signal for gdb ( #7848 )
...
* Corrected tid syntax, added pid/thread-specific continue
* Added continue with sig
2017-07-02 19:09:04 +02:00
Srimanta Barua
2424f962ce
Check which vcont commands and use them if they are ( #7847 )
2017-07-01 21:16:48 +02:00
Srimanta Barua
ff7b6c1df2
Optimized gdbserver mem read, and added gdbserver mem write
2017-06-29 17:17:22 +02:00
pancake
48fd6485bc
Update sdb
2017-06-27 23:29:56 +02:00
pancake
fc41044e93
Iterate over all DT_FLAGS, and update capstone
2017-06-27 18:16:37 +02:00
SrimantaBarua
59a5c07d8f
invalidate reg cache
2017-06-26 11:39:30 +02:00