Commit Graph

68 Commits

Author SHA1 Message Date
pancake a793859d5b Fix some COVs 2015-06-01 11:20:53 +02:00
Álvaro Felipe Melchor 75e719362d Fix #2603 2015-05-23 19:10:22 +02:00
dequis 08ff4e493a Always use ut32 for unix timestamps. Also handle endianness properly
Because it turns out sizeof(time_t) is 8 in 64 bit platforms, but that
results in really broken 'pt' results, where half of the lines are
'invalid date'

Also, endianness handling was swapped in the case of 'pt' and
non-existent in the case of 'rax2 -t' (the latter actually did a weird
hack to swap endianness twice and get valid results).

Now rax2 -t supports the -e parameter to swap endianness.

The usage of r_mem_copyendian with r_print now matches what's done
in other places, with !p->big_endian instead of p->big_endian,
because 0 means swap and 1 means do nothing. Terrible function.

This also fixes some valgrind warnings about uninitialized values
(when copying 4 bytes to a 8 byte time_t)
2015-05-01 10:28:23 +02:00
pancake 12ea9734b5 Fix about 15 more random COVs 2015-03-21 02:04:49 +01:00
pancake 4ad5a7a27b Fix more base64 warnings 2015-02-09 23:37:49 +01:00
pancake 48422b07db Fix #1910 2014-12-26 19:42:35 +01:00
pancake bb3be2c237 Implement `rax2 -N` for a C friendly version of -n, and support 64bit values 2014-10-28 16:32:53 +01:00
pancake a2c3647ad0 Somewhat better BoostJam support 2014-10-26 02:47:08 +02:00
pancake 3a9a733ebf Implement rax2 -F (r_stdin_slurp(), r_hex_from_c())
- Update rax2 manpage
2014-10-20 00:46:59 +02:00
pancake d176cb1d01 Fix rax2 2014-09-26 17:11:10 +02:00
pancake 6d8b9608a7 Add doc for that new rax2 thing 2014-09-22 16:40:08 +02:00
pancake a095ad7a42 Fix #1356 - rax2 =10 0x89984 or rax2 =16 ... 2014-09-22 16:35:23 +02:00
jvoisin 359846b0d1 Fix some buffer overflow 2014-08-18 14:22:36 +02:00
pancake c40a4a8e82 Handle negative hex values in rax2 2014-07-13 22:12:29 +02:00
condret 70744a1ad9 support ternary values in rax2 2014-05-28 21:50:13 +02:00
jvoisin 031691f44e Implement rax2 -D and rax2 -E
Plus some re-ordering.
2014-05-22 09:26:17 +02:00
pancake 8e4b7c0f70 Fix #914 rax2 -s/-S (Theodore Quaid patch) 2014-05-13 23:21:54 +02:00
pancake 31619ca208 Add test-rax2.sh script 2014-05-13 17:32:01 +02:00
pancake a7778a5815 Fix r_num_free memleak 2014-05-06 04:00:26 +02:00
Anton Kochkov b1f70bc0de Fix CID 1134969 2014-05-02 14:59:52 +04:00
Anton Kochkov cefa742a25 Fix CID 1134727 2014-04-26 04:16:28 +04:00
pancake eaccd3bb7a Fix #743 - rax2 -v shows interpreter 2014-03-31 05:46:42 +02:00
pancake 8279f508db Implement /P and Optimize + Fix #412 ROP search 2014-01-27 01:12:16 +01:00
pancake 7f28befc04 Fix static build 2013-12-31 05:40:16 +01:00
pancake f02b0b2940 Minor refactor in rax2 2013-10-16 23:25:35 +02:00
pancake 92bdbf0c0a Add scr.fgets and fix rax2 -s for emscripten 2013-09-16 04:08:08 +02:00
pancake c1629360f9 Better rax2.html - See http://rada.re/js/rax2 2013-09-16 02:50:37 +02:00
pancake 18cc767292 More emscripten/android build fixes 2013-09-07 02:20:38 +02:00
pancake 7855f4952f Initial work supporting emscripten compilation 2013-09-07 00:39:08 +02:00
pancake 3ff36c3965 Fix #205 - rax2: fix misuse of read on stdin 2013-09-03 19:29:33 +02:00
pancake 3c62d1905a Fix rarun2 stdout and stderr pipes
dcu requires argument to work
Enhace rarun2 manpage
Fix rax2 -B for negative values
2013-05-05 19:39:01 +02:00
pancake 59670523e2 Initial transition to sdb: anal.xrefs
- Cascade core_project_save > anal_project_save > anal_xrefs_save
- Database is stored into ~/.radare2/rdb/$prj.d/xrefs
- Build libsdb properly to get access to all the api
- Use sdb from r_anal_xrefs() - needs cleanup
- Update sdb to the latest version from git
- Fix some warnings
2013-04-18 03:58:44 +02:00
pancake 96d1a1141b Fix invalid flag name filtering issue and add rax2 -t (timestamp) 2013-04-16 01:48:03 +02:00
pancake 9894b0075e Add 'rax2 -u' to get aproximated units measure for given value 2013-04-11 01:30:46 +02:00
pancake 3aa549ecb0 Share version function between all commands. Fix #76 2013-04-04 02:32:13 +02:00
pancake cea398e345 Add rax2 -n for binary numeric values 2013-03-05 01:28:32 +01:00
pancake 8186395ebd Fix rax2 -S and ragg2-cc -x, better radiff2 error msg
rax2 -S is now obeying 0 input length for stdin streams
ragg2-cc -x is now working properly (needed rax2 -S)
Fix stupid parsing bug introduced in previous commit in armass
2013-02-19 21:21:39 +01:00
pancake 766563cc6e Big endian for arm.winedbg and addn randomart in rax2 -k
r_asm: Add support for big endian arm.winedbg
rax2: Add -k randomart to rax2, -k is now -B
rax2: Handle multiple flags on a single argument
rax2: update manpage
2013-02-13 01:20:42 +01:00
pancake 69a12884ed Simplify the build system
doc.sw has been moved to radare2-extras
2012-10-03 14:31:35 +02:00
pancake 3ffbba7aec Fixes in the debugger, for osx, software stepping and rax2
- Protect possible index out of array in osx register code
 - Fix possible segfault in debugger backtrace
 - Fix osx debug register state write
 - Fix software stepping. Needs more work and test on mips
 - New flag: rax2 -d . force integer output value (no hex or so)
 - Fix 'i' command output
2012-07-06 19:30:17 +02:00
pancake 41a230ddf7 Add p=?, rax2 suports negative values and more
- Support negative integer values in rax2
  - Fix column selection draw in r_print_hexdump
  - Implement p=p and p=e commants
  - Disallow visual insert if file is readonly
  - Similar to pZ, but
  - Honor -w flag to create file if possible
  - Use new r_io_create() api
  - Add scr.sparse to show hexdump in sparse mode
2012-07-06 02:17:44 +02:00
pancake 810d9a3dbc * Put rax2 buf in .bss instead of the stack
* Add support for wide string dump in r_bin
* Fix detection of data section in PE
* Show error if temporary seek flag does not exists
* Fix wrong disassmbly with 'pd' (invalid)
2012-05-30 03:23:53 +02:00
pancake 906275f98e * Fix echo - | rax2 -S bug
* Do not show fortunes if -q is passed
* Add support for anonymous macros
* Add support for quoted strings and backspaced
  spaces in macro arguments
* Fix r_num_get call from calc.c (a +3 == a+3)
2012-05-25 01:14:49 +02:00
pancake 621d78cff4 * add support for floating point arithmetics in r_num_calc
* show r_num_math parsing errors to stderr
* add rax2 -f to show result in floating point
2012-02-14 05:26:41 +01:00
pancake dc1efdcdd8 * Add manpage for ragg2-cc
* Fix rax2 -S (by @earada, reported by @sre)
* Fix typos in manpages reported by lintian (thx @sre)
* Add r_core_file_reopen()
  - 'do' is an alias for 'oo'
  - close previous file
  - breaks debugger reopen .. needs more work
2011-12-05 02:42:06 +01:00
earada bdd3bf9f06 * Update rax2 manpage 2011-12-04 02:44:58 +01:00
pancake a5cb0c7810 * Add ragg2-cc
- shellcode compiler using gcc or llvm-gcc as backend
  - inspired in shellforge, written in shellscript
  - works on x86-32 with linux and osx
* Fix rax2 -S for binary data
2011-11-26 05:14:03 +01:00
pancake 0357ddf18e * Move rapatch into r_core_rapatch (r2 -P)
- Remove r_core deps from rabin2
  - Accessible via 'wp'
* Fix build check of test program in r_db
* Pass CFLAGS/LDFLAGS to sdb build
* Add rax2 -k to not change base
2011-09-09 09:49:55 +02:00
pancake 2c92c7d172 * Merge rapatch2 into rabin2 -p
* Honor bits in r_syscall_setup
  - Initial work on RPair in r_syscall
  - Not yet integrated, but design is mostly done
* Add r_str_split()
* Add python2 and python3 makefile rules in r2-bindings
2011-09-04 03:56:35 +02:00
pancake 763289b4aa * Fix Bx1d issue in rax2
- Applied patch by flux. Thanks!
2011-08-29 00:43:20 +02:00