Commit Graph

296 Commits

Author SHA1 Message Date
davidpolverari
f87d43899f WIP: Handle path tab autocompletion in RFShell (#9837) 2018-04-24 13:57:17 +02:00
Paul I
40b4a5b557 Meson: disable libversion info for Windows (#9858) 2018-04-10 22:44:54 +02:00
pancake
2a8ab337d9 WIP: Initial implementation of RFShell tab autocompletion 2018-04-09 01:15:20 +02:00
Paul I
ca3652da4b Meson: Add version info for shared libs (#9763) 2018-03-24 18:18:32 +01:00
pancake
092695d262 Fix last covs mainly in r_fs 2018-03-23 12:52:56 +01:00
Paul I
4e73ad7d19 Meson: some cleanup (#9753) 2018-03-23 07:47:46 +01:00
pancake
eb3370f47d Make RFShell initialization more flexible 2018-03-21 12:02:22 +01:00
davidpolverari
b29998f3f2 Implement dietline history on mount-shell (#8806). (#9534)
* Implement dietline history on mount-shell (#8806).

Gives minimal dietline history support inside mount-shell. There is
still a need to implement autocompletion.
2018-03-21 11:59:39 +01:00
Lowly Worm
12d291be0f fix double free in r_fs_find_off_aux 2018-03-04 11:10:19 -08:00
Florian Märkl
5e1f811ec0 Fix meson indentation (#9567) 2018-03-03 22:08:37 +01:00
Florian Märkl
95a1b75784 Install Headers and .pc Files with Meson (#9548)
Use meson pkgconfig for .pc files

meson 0.44

Install same headers as acr
2018-03-03 20:00:18 +08:00
Paul I
bb4f61580e Cleanup meson files (#9424) 2018-02-20 09:33:19 +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
0cb277c2a6 r_str_ansi_chop -> r_str_ansi_trim, r_str_chop_path -> r_str_trim_path 2018-01-08 03:33:01 +01:00
pancake
0b1e8eaecc Fix almost all warnings from the msvc build 2017-12-19 00:18:39 +01:00
pancake
d43d2f738d Fix asm.immstr 2017-11-14 03:59:24 +09:00
pancake
e0bd301c65 Rename mo to mi, and implement mo, o. to open fs files or data as malloc:// 2017-11-08 03:08:41 +01:00
pancake
3af92b04c3 Remove squash references (it's in extras) and add RFSPlugin.license 2017-11-08 00:49:29 +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
pancake
ffeba10d1b Enhance the fs.r2 with /version and proper cat/read ops 2017-11-07 02:04:03 +01:00
pancake
5fc5137c70 Autodetect and mount ISO9660 partitions 2017-11-06 23:58:50 +01:00
pancake
2e08b0c91f Implement /M and enhance r_fs to autodetect filesystems 2017-11-06 23:32:08 +01:00
pancake
f75b5441c9 Fix automount and handle hfs from RBin 2017-11-06 23:06:54 +01:00
Francesco Tamagni
c971176e41 Tweak fs.io
- fs_io_open: expects the io plugin to return the file size as an usigned int string
- fs_io_read: use name instead of path (because fs_io_open sets the name as absolute path) and require the io plugin to provide file contents as hex encoded string
- fs_io_dir: honor the type provided by the io plugin as a single char followed by a space in each line of the output
2017-10-31 00:22:33 +01:00
pancake
2eb8af0b71 Fix recent memleaks found by cov 2017-10-25 16:20:26 +02:00
pancake
d9b548e5b5 Fix last covs 2017-10-24 16:51:34 +02:00
pancake
bb17e9acda Fix mg infinite recursivity issue, add fq and fsq commands and handle /flags in fs.r2 2017-10-23 12:54:03 +02:00
pancake
95a8576360 Fix cd in ms when path not found 2017-10-23 03:57:41 +02:00
pancake
3f64b7a1dc Initial implementation of the r2 filesystem 2017-10-23 03:48:48 +02:00
pancake
21b85ca53f Honor mountpoints in ms's cd 2017-10-23 01:21:24 +02:00
pancake
f20a61a171 List mountpoints in path via md 2017-10-23 01:11:43 +02:00
pancake
5132c88f4d More code cleanup and tweaks for char* r_io_system 2017-10-23 00:45:01 +02:00
pancake
ca1b44e64d Add dummy fs.io plugin, r_io_system now returns char* 2017-10-22 23:52:07 +02:00
alvarofe
c2b58d7cf0 Fix UaF in fs.c 2017-08-11 18:06:25 +02:00
SkUaTeR
c31d81da26 support for static build (#7822)
* support for static build
* improved sharard/static build
2017-06-28 22:54:40 +02:00
SkUaTeR
dc7914644e Meson improvements 2017-05-31 13:38:47 +02:00
SkUaTeR
0596c1c08e Meson shlr libs 2017-05-30 18:38:19 +02:00
pancake
6758e3753d Remove configure-plugins dependency for the make meson 2017-05-26 02:43:53 +02:00
SkUaTeR
9a1337512a meson.build fixes to build with MSVC 2017-05-14 23:06:00 +02:00
SkUaTeR
28f785daa0 MSVC compile correctly (WIP) 2017-05-13 00:42:00 +02:00
pancake
60f9667654 Remove support for bjam build system
- Delete all Jamroot files
2017-05-02 05:48:40 +02:00
pancake
fa671b9a16 Initial support for the Meson build system
- Integrated with current ACR
- Fix some stale fails got removed
2017-05-02 05:05:36 +02:00
pancake
26f7c77a42 Fix latest covs 2017-04-17 12:43:56 +02:00
Marcel
a4fc91f29b Remove dirent.h dependency for Windows and add utf16<->utf8 conversion function 2017-04-15 13:07:33 +02:00
pancake
93eb47ccac Update SDB fixing stack exhaustion in merge sort and enhance indentation scripts 2017-02-12 22:44:13 +01:00
Álvaro Felipe Melchor
f5166f936d Fix some meamleaks (#6156) 2016-11-09 02:28:14 +01:00
dx
4385bad569 Fix #6056 - crash on "mp gpt" and other non-msdos grub part types (#6065)
The only partition type with grub_parhook was "msdos", and grub_parhook is
needed to call avoid calling the partition map as if it were a function.

Also simplified a few void * casts.
2016-10-29 12:27:54 +02:00
pancake
be9df39f6f Fixed 40 null derefs reported by coverity 2016-10-20 15:02:25 +02:00
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
Maijin
7938640445 Move all /t/ from r2 to r2r 2016-07-27 19:19:30 +02:00
pancake
d3394d5a7a Fix latest 28 COVs 2016-06-02 03:19:31 +02:00
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +02:00
Álvaro Felipe Melchor
99fc0b9fef fix CID 1352385 and 1354256 again (#4601)
* fix CID 1352385 again

* fix CID 1354256 again
2016-04-10 21:28:05 +02:00
pankajkataria
4789c5d46c CID-1354256-libs.c and CID-1352385-fs.c 2016-04-10 18:04:04 +02:00
pancake
7a19745932 Add missing squash.mk 2016-03-30 16:47:23 +02:00
pancake
d9d4e7f889 Initial implementation of fs.squash and merge squashfs-tools 2016-03-30 16:01:24 +02:00
pancake
569e44b5a2 Fix invalid free in r_fs_free 2016-02-28 02:50:33 +01:00
pancake
af2f02515f Support and load r_fs plugins 2016-02-21 02:32:28 +01:00
pancake
42acaa7596 Softly kill boolt type 2016-01-03 02:05:26 +01:00
pancake
92c1631a06 More indent fixes 2015-12-09 00:41:44 +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
XVilka
720341c2df Improve -fPIC handling, take 2 2015-10-09 22:24:15 +03:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
pancake
37d1dce099 Fix #2634 - Open projects webui when no file is opened
$ r2 -c=H --
2015-05-28 00:59:37 +02:00
Anton Kochkov
1c3f6f4797 Fix segfault 2015-04-11 03:05:29 +03:00
Anton Kochkov
5a0bde5a01 Coverity fixes 2015-04-11 01:29:28 +03:00
pancake
87162dc8bf Add wta support for appending dump. 2015-04-03 04:11:26 +02:00
pancake
515b2e77bc Fix about 40 COVs related to memleaks and buffer overflows 2015-03-21 01:27:54 +01:00
jvoisin
55f5c73008 Coverifix++ 2015-02-19 12:59:13 +01:00
pancake
098d0ec1de Initial implementation of --without-gpl 2015-02-07 01:50:25 +01:00
jvoisin
a2d4bd08bb Fix some memleaks 2015-02-05 11:43:10 +01:00
pancake
aa1fa2bc62 Fix some COVs 2015-01-29 12:16:37 +01:00
pancake
5064a640fa Initial de-grub-ization of r_fs. DOS partition parser
- Implement simple LGPLd DOS partition parser
2015-01-28 04:34:53 +01:00
pancake
52b28c601a Re-enable GRUB code. Oops 2014-11-01 22:20:11 +01:00
jvoisin
9b99c0135d Even more coverifix 2014-08-18 15:03:02 +02:00
pancake
fef35eb402 Fix CID 1229239 2014-08-01 01:14:40 +02:00
jvoisin
6b5176e0a8 Fix another batch of coverity issues 2014-07-28 21:58:44 +02:00
jvoisin
a4182641b9 Fix more coverity issues 2014-07-28 18:18:01 +02:00
jvoisin
4e80eaa285 Fix CID 1135012 2014-05-24 01:33:59 +02:00
jvoisin
74bd8f577c Fix CID 1211164 2014-05-09 14:45:48 +02:00
jvoisin
e825bd3080 Fix CID 1211172 2014-05-06 01:04:00 +02:00
jvoisin
9e7a153ac6 Fix CID 1211164 2014-05-05 17:17:24 +02:00
Anton Kochkov
18d258c0ec Fix CID 1134815 2014-05-03 03:40:04 +04:00
Anton Kochkov
7c6c706804 Fix CID 1134984 2014-05-02 14:43:51 +04:00
Anton Kochkov
09639c514f Fix CID 1135012 2014-05-02 13:25:24 +04:00
Anton Kochkov
e1d3a641a4 Fix CID 1135013 2014-04-30 04:26:35 +04:00
Anton Kochkov
38b8d59764 Fix CID 1135014 2014-04-30 04:26:35 +04:00
Anton Kochkov
8c3d75c62d Fix CID 1135015 2014-04-30 04:26:34 +04:00
condret
27d7725950 Code clean up and fix o+ 2014-03-26 22:32:45 +01:00
pancake
d784eca2a8 Some static link fixes 2014-03-24 23:47:04 +01:00
pancake
d86bf57ca4 Remove more r_lib references 2014-01-18 02:52:49 +01:00
pancake
38fc28f960 Added more Jamroot files 2014-01-03 00:13:46 +01:00
pancake
0a3e867392 Fix linking and do some minor changes 2013-12-22 03:24:12 +01:00
pancake
6eb7a5ed2f Move grub into shlr 2013-12-14 03:51:18 +01:00
pancake
8559ea2d0b Some more coverity fixes 2013-12-03 04:20:45 +01:00
pancake
9cf450272e Fix two more coverity issues 2013-12-03 01:02:08 +01:00
pancake
d02df0d306 Fix some issues reported by CoverityScan service 2013-12-03 00:14:59 +01:00
pancake
ae97789986 Fix lot of warnings 2013-09-14 14:04:08 +02:00
pancake
fb610cdc62 Update sdb and fix android build 2013-08-26 02:43:15 +02:00
pancake
aa58db6b28 Fix 'fs/d' sdb build 2013-06-27 03:07:59 +02:00
pancake
bc0104563b Initial support for runtime versioned libraries
- This check will ensure you are running the latest r2 version.
2013-06-14 02:51:33 +02:00
pancake
ed3edeb715 Fix native build 2013-05-14 02:06:43 +02:00
pancake
9c8692ab06 Some udis86 anal fixes, update sdb and fix mingw32 build 2013-05-14 01:53:52 +02:00
pancake
032860782d Add checksum correction hints for DEX 2013-04-11 01:25:25 +02:00
pancake
f70dbe784b Fix --host crosscompile (acr 0.9.2) 2013-02-06 11:47:31 +01:00
pancake
1cd860aab6 Update udis86 from official git repo.
git pull  git://udis86.git.sourceforge.net/gitroot/udis86/udis86
2012-11-12 17:36:29 +01:00
pancake
b252b34358 Some initial work to support emscripten 2012-11-12 17:13:01 +01:00
pancake
e48b9b2f30 Add cfg.sandbox functionality
f.example: $ r2 -c=H -e cfg.sandbox=true -
2012-10-20 00:31:18 +02:00
pancake
69a12884ed Simplify the build system
doc.sw has been moved to radare2-extras
2012-10-03 14:31:35 +02:00
pancake
dba5de4416 Fix build (R) 2012-09-26 23:58:55 +02:00
pancake
5ad9ae97ed Fix some bugs (nullptr, memleak) reported by clang-analyzer 2012-09-26 10:01:43 +02:00
pancake
10b4b5546c Fix resize command and more make race conditions 2012-08-14 01:25:50 +02:00
pancake
a2ebdcb650 Fix memleaks, nullref and undef (clang-analyzer)
Fix multiple inclusions of mk files
2012-08-08 17:19:48 +02:00
pancake
66a5e79317 * Fix invalid init segfault reported by vext01
- This showed several minor fini issues (rlang, rfs, regg, rflag)
* Fixes in r_core_disassemble()
  - Honor delta and r_asm_set_pc()
* Fix RHash bindings and add it into .deps for RCore
2012-06-14 17:41:07 +02:00
pancake
a1a1519b92 * implement osx-x86-32/64 native cross debugging
* Add p= command to show the statistics graph
* Rename Vw to Vi (write->insert)
* Add dummy base85.c
* Various binding fixes (add test3.js)
* Fix socket.vala
2012-06-07 03:41:21 +02:00
pancake
997a6dbd14 * Apply patch from @w_levin fixing lot of memory leaks - Thanks! 2011-12-16 16:33:06 +01:00
pancake
f908b15fb5 * Fix android compilation
- Fix static build
  - Fix dupped symbols
* Fix all errors reported by clang-analyzer
  - Some null dereferences
  - Some uninitialized variable uses
* Fix all important warnings from the farm
  - Remove *all* uses of alloca
  - Fix many %llx format string portability issues
* Fix manpage typos reported by lintian (thanks sre)
2011-12-06 00:27:57 +01:00
pancake
068be100ff * Added dummy dospart sdb database
* Some minor changes in r_fs
2011-11-22 02:35:14 +01:00
pancake
c16d61b370 * Add missing fs/types.h
* Fix many memory leaks in r_anal_{op,cond}
* Fix signature of r_fs_name()
2011-11-14 00:21:25 +01:00
earada
73546d6b96 * Add automount support to RFS
- m / <- Autodetect filesystem in current offset and mount it
* Add 'm' description to '?' command
2011-11-13 22:47:08 +01:00
pancake
0e98ad3b37 * Fix build of bindings
* Add sys/bokken.sh
2011-10-21 20:07:28 +02:00
pancake
51d6e83c93 * Fix mingw32 build 2011-10-11 01:35:21 +02:00
pancake
32afad2b65 * Fix build with clang
* Fix some warnings which result in more bugfixes. yay
2011-10-10 01:48:08 +02:00
pancake
6213779213 * Avoid use of extended arm instructions for ut64
- add documentation for installing NDK in archlinux64
  - fixes build for android-arm
* Import android targets for the build farm
2011-09-25 21:07:34 +02:00
pancake
403aa4b36d * Fix ~40 off-by-one strncpy's 2011-09-18 20:41:36 +02:00
pancake
323441c122 * Initial import of r_magic
- Imported code from OpenBSD trunk
  - Remove the elf part (-1KLOC)
  - Some refactoring in order to be more r2-like
  - fixed warning messages
  - readdir one can be dangerous /cc @vect01
  - Remove libmagic dependency
* Rename asm.case into asm.ucase
2011-09-10 01:30:03 +02:00
pancake
6d5bef5976 * Use hg manifest in make dist
* Honor r_bin_use_arch arch and bits information for r_bin_create
* Implemented sC command to seek by comment matching
* Fix one byte Color_RESET in r_print
* Minor refactor in rasm newlisp example
2011-08-27 03:31:55 +02:00
earada
677fe55587 * Fix some memleaks 2011-08-06 20:44:59 +02:00
earada
475a57aa48 * Add rap metainfo support
* Fix memleak at r_fs (Thanks @ajaragoneses)
* Add directory dump support at r_fs shell
2011-08-04 21:28:07 +02:00
pancake
0d4faf652e * Set library version number for plugins
- Registers for which version of core was compiled
* Use tar --format=posix when GNU tar
  - Fixes the dependency on BSD systems
* Fix in doc/fortunes
* Fix this class pointer in asm_java
* Re-Fix uglily the bin_elf strtab issue (needs more work)
* Fix Vala regression in r_asm.vapi
2011-07-19 00:12:36 +02:00
pancake
ca5e38d239 * Fix w32 and w64 build (r_fs/grub issue)
* Dont quit rax2 when reading from stdin until 'q' or ^D
* Minor fix in fortunes
2011-07-13 13:59:55 +02:00
pancake
97232ecc1c * Bump to 0.8b
* Clean up some warnings of r_fs
2011-07-12 09:22:40 +02:00
pancake
35f139986e * Fix invalid delta bug in r_fs_partitions
- Thanks @earada for noticing it
* Fix 32-64bit pointer segfault caused by missing function signature
* Make partition msdos map be verbose when failing
2011-07-12 00:31:57 +02:00
earada
1f30cc1025 * Add vmenus-mounts option 2011-07-11 22:52:05 +02:00
pancake
cec16d4c8f * Add r_fs_partition_type api 2011-07-08 00:24:14 +02:00
pancake
d07c67e87a * Fix build on mingw32 2011-07-06 21:57:12 +02:00
pancake
bebb19a5ce * Fix some warnings patch by @capi_x
* Added R_REFCTR macros
* Ignore prefixed 0x in hexstr2bin
  - Fixes issue in 'wo*' commands (thanks edd)
2011-07-04 23:23:06 +02:00
pancake
ea98fe1bd6 * Various gcc-4.6 warnings fixed 2011-06-30 00:17:12 +02:00
pancake
3fbbd865d5 * Fix build in OSX 2011-06-20 23:53:38 +02:00
pancake
adcefe78fe * Added 'mad' compiler support to crosscompile to maemo6 with QtCreator
- ./configure --with-compiler=mad --with-ostype=gnulinux
* Fix various warnings reported by maemo toolchain
2011-06-14 01:44:28 +02:00
earada
839bd60882 * Add mfs and mfo to search by name and offset
* Fix rafind2 build
2011-05-22 00:23:39 +02:00
pancake
a4b57487bf * Fix pkg-config-symstall
- Update all .pc files
* Fix 'pf d*' segfault
  - Show flag references in all 'pf' values
* Many bugfixes in vapis
  - Use nested namespaces instead of static classes
    - Static classes was deprecated in Vala some years ago
  - All bindings are working again
  - C++ support has been added
  - Guile is now compiled by default
* Added ./configure-langs to select which langs to use
  - Use --enable=python,perl or --disable=guile
2011-05-20 19:49:50 +02:00
earada
7d7a9e27d6 * Fix directory listing and recursive mountpoint listing
* Fix RSocket build without SSL support
2011-05-18 01:27:09 +02:00
pancake
7a4343aa1e * Cleanup the build of the python r_lang plugin
* Use ${MAKE} instead of 'make' in swig/ (Thanks Edd Barrett!)
* Fix build in OpenBSD (missing #include)
2011-05-14 13:10:51 +02:00
pancake
80492f5620 * Fix help message in radiff2 2011-05-13 12:14:00 +02:00
pancake
a3050fce7b * Implement r_fs_view() method to set visibility options for filesystems
- Added enum for VIEW_{DELETED|SPECIAL} ...
  - Implement support for listing deleted files for FAT.
  - Experimental state
* Add 'fs.view' eval variable
  - values normal, all, deleted and special
  - only 3 letters are checked 'del' and 'spe' are ok
* Add missing include files
2011-05-13 02:31:18 +02:00
earada
95e51548b6 * mg now support files and dirs
* Fix bin_fs build
2011-05-12 15:01:29 +02:00
earada
21891a992a * Add dir_dump and find functions to r_fs
* Update RFS vapi
2011-05-12 01:17:35 +02:00
pancake
3f2677ab7f * Added initial untested support for native gdb debugger mode
- r2 -d gdb://<host>:<port>
  - register maps not yet implemented
  - some basic step/continue should work in cfg.debug=true
  - gdbwrap instance is shared between RIO and RDebug
* RDebug is now arch-sensitive
  - Plugins describe which architectures and register sizes are supported
  - Native debugger is restricted to local CPU
  - Remote debugger (GDB) arch can be specified with -e asm.arch=arm
* Fix some random warnings
* Move R_ASM_ARCH into R_SYS_ARCH
  - Helper functions to translate id to string and string to id
    are now in util/sys.c (r_util)
  - Move all R_SYS_* from r_util to r_types
    - Endianness, OS, CPU and regsize is now 'global'
2011-05-06 00:59:10 +02:00