30 Commits

Author SHA1 Message Date
pancake
ed82bfd59c Fix double free in libmagic pointed out by clang-analyzer 2015-11-02 12:21:17 +01:00
jvoisin
dba909b1dd Fix yet-another-batch of clang-analyzer issues 2015-09-01 23:24:11 +02:00
jvoisin
838c467724 Coverifix once again 2015-02-19 15:04:58 +01:00
pancake
383e225135 Fixes on top of the clang-warn-fix commit 2015-02-05 10:57:28 +01:00
Jeffrey Crowell
d4e0575d67 build on clang jenkins now 2015-02-05 10:57:21 +01:00
jvoisin
abd2fb5179 Some coverifix 2015-01-15 23:52:56 +01:00
Kamil Rytarowski
aadbd0f868 Fix GCC warnings: array subscript has type 'char'
Reported at NetBSD-current/amd64
GCC 4.8.4 (nb1 20141012)
2014-12-04 03:26:08 +00:00
pancake
1d9955b2d4 Clean unnecessary MAGIC rules and optimize its search
- Cleanup MAGIC database to avoid false positives,
- Optimize magic search loop 6x faster /m
2014-10-22 00:56:11 +02:00
pancake
d809200fa2 Fix more memleaks 2014-08-29 16:42:00 +02:00
Anton Kochkov
8032c66b82 Fix CID 1135061 2014-05-13 02:26:48 +04:00
Anton Kochkov
d56b4046de Fix CID 1134837 2014-05-03 04:29:09 +04:00
pancake
86507d9637 Fix stuff to make perl bindings happy 2014-01-05 00:41:13 +01:00
pancake
d02df0d306 Fix some issues reported by CoverityScan service 2013-12-03 00:14:59 +01:00
capi_x
c9eb90adbc Add initial Haiku support 2013-06-06 00:21:52 +02:00
pancake
d82c53224f Fix w32 build 2013-01-23 14:50:50 +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
4a50f8a94d * Distribute magic files with w32dist
* Fix symstall of magic files
* Do not walk hidden files in magic
* Add has_va in RBinInfo class for bindings
2011-11-29 18:31:26 +01:00
pancake
31a11600c5 * Theorically fix the r_magic dirty sanchez bug
* Fix RIO seek undo with io.va
* Warn if file size != region size in dml
2011-11-16 10:06:34 +01:00
pancake
ac7f96bb0c * Add ragg2 -p to specify a padding
- Use the new r_egg_padding function
* Add support for continuations in rapatch2 '+' char
* Fix malloc(0) thanks to llvm's scan-build
* Fix build
2011-11-13 05:26:07 +01:00
pancake
55f5dc283e * Initial support for php5 bindings
- Does not link on OSX. maybe in Linux it does..
  - Requires valabind-hg
* Add mp.py to get python module path (magic!)
  - Fixes install-python target in
  - Add purge-python makefile target
* Check for */*cxx to autodetect support
2011-10-26 01:52:05 +02:00
pancake
4106e9e1b2 * Bump 0.8.8, but still not release
* Add --with-magic to use system magic library
2011-10-18 09:38:20 +02:00
pancake
989fdb3dc8 * Implement raw get_main analysis for MACH0 binaries (x86-32/64)
* Remove main() from libr/magic .. was using non-portable strlcpy/strlcat
2011-10-10 16:55:39 +02:00
pancake
9efe88a9ce * Fix offbyone in asm.brainbuck bug
* Fix some segfaults and issues in r_magic
* Use the libr/socket/http library
* Added r_io_http plugin
* Magic search is extremely slow
2011-10-07 01:16:45 +02:00
pancake
096b7eb406 * Fix mingw32 build 2011-09-14 12:37:26 +02:00
pancake
37fecf7c0c * Implement RBinCreate.elf-arm
* Fix uninitialized shstrtab segfault in r_bin_elf
* Do not create new objects unnecesarily in r_core_magic
* Handle length argument in pb command
* Fix ps command
* @@ now prefixes each line with the offset (useful for search)
  - can be problematic when used with macros
  > / lib
  > ps @@ lib*
* Huge refactoring in r_magic, now using the r2 coding standards
  - Use r_magic_new() and _free() instead of open/close
  - Reduced -1KLOC
2011-09-12 01:47:28 +02:00
pancake
bf463cae9e * Fix 2 more bugs in OpenBSD file(1)
- ref: http://lolcathost.org/b/openbsd-file.patch
2011-09-11 16:04:38 +02:00
pancake
6afd85a447 * More work on the OpenBSD file(1)
- Fix a segfault bug (not exploitable)
  - Import some magic files and install
  - PREFIX"/lib/radare2/"R2_VERSION"/magic"
  - Output of 'pm' is easier to read now
  - Add pm? help message
* Remove all flags from previous search
* Handle ^C in /m search
* Autocomple ~ with tab (home)
  - Fix autocomplete filenames without '^[\.|/]'
2011-09-11 03:59:24 +02:00
pancake
cfccb47b0f * Fix build 2011-09-11 00:42:59 +02:00
pancake
2415d86fd6 * Added sys/ in order to ease build, deps and python /cc @hteso
* Some fixes in r_magic api to make r_lang/perl compile
2011-09-10 02:19:06 +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