1814 Commits

Author SHA1 Message Date
Khairul Azhar Kasmiran
ab9368966e Cs: show unfiltered strings (#8605) 2017-09-29 12:33:24 +02:00
xarkes
b4a1a595c9 pf segfault fix (#8592) 2017-09-26 23:45:42 +02:00
pancake
45b0c9b3f3 Fix #8487 - infinite loop in pf with undefined recursive types 2017-09-26 12:49:23 +02:00
pancake
3adb70a753 Honor io.0xff in sparse RBuffers 2017-09-26 11:55:48 +02:00
pancake
da30f1c80c Fix invalid free with rust core plugin (wip) 2017-09-25 16:05:42 +02:00
pancake
8ce09268e1 Avoid warning in modern macs for DYLD_PRELOAD via rarun2 2017-09-23 02:31:12 +02:00
Khairul Azhar Kasmiran
8d061778bd Csj: add enc and ascii properties (#8570) 2017-09-20 18:27:33 +02:00
pancake
1a1958f0e5 Fix #8469 - Fix cmd.repeat again and honor opdelta for pd 2017-09-18 16:18:12 +02:00
pancake
899d561574 Fix two covs 2017-09-18 15:46:55 +02:00
pancake
84cc37664a Fix emu test (pf 's' on unreadable memory printing trash) 2017-09-18 04:13:49 +02:00
pancake
1bfb5ffba2 Fix swprintf crash issue for mingw32 builds 2017-09-18 00:06:23 +02:00
pancake
85744e8ae6 Fix p- and crash in r_str_const_free 2017-09-17 02:39:44 +02:00
pancake
6ddc76ef37 Enhance r_str_const api, allowing to specify target cache 2017-09-17 02:27:03 +02:00
Fangrui Song
deb7c07c63 Intrusive augmented top-down red-black tree 2017-09-15 19:36:57 +00:00
Fangrui Song
bd285dedc6 Optimize space consumption to O(n) in edit distance (#8481) 2017-09-15 13:44:57 +02:00
pancake
98a5b8e44c Fix #8500 - Overflow when indenting too deep JSONs 2017-09-13 11:39:10 +02:00
pancake
8315feb1d8 Bring back the levenstein and fix previous commit 2017-09-13 10:25:13 +02:00
pancake
24c85ac965 Bring back the levenstein diff and add missing function signatures 2017-09-13 10:16:19 +02:00
Fangrui Song
8f1c3ec6ec Replace radiff2 -s with Eugene W. Myers' O(ND) diff algorithm (insertion/deletion cost=1, no substition)
-ss for Levenshtein edit distance (the current r_diff_buffers_distance_levenstein  is incorrect)
2017-09-13 10:14:12 +02:00
pancake
5c2a233878 Fix warnings 2017-09-13 10:09:57 +02:00
Sven Steinbauer
86a3aa92b6 Fix asm rep ops from within r2 (#8485) 2017-09-12 12:45:37 +02:00
pancake
a0a7ab67b8 Fix empty fortune message issue 2017-09-12 00:57:55 +02:00
Fangrui Song
24fb614da2 Fix a mem leak in idpool.c (#8445) 2017-09-12 00:40:21 +02:00
Phoebe Queen
360dfcb470 Added dense qrcodes functionality, with inverter 'i' code (#8443) 2017-09-11 12:13:48 +02:00
condret
f03e2e4fef fix some stuff 2017-09-07 18:27:40 +00:00
condret
e5842479ce add interval api 2017-09-07 15:19:17 +00:00
Fangrui Song
4f9cfe359a Fix out-of-bounds read in r_file_hexdump (#8422) 2017-09-04 05:01:32 +02:00
Fangrui Song
8b72614bf9 Use r_str_ncpy (dst, src, sizeof dst) instead of sizeof dst - 1 (#8420)
Related issue: #8025
2017-09-04 02:57:48 +02:00
pancake
5b844f22b0 Fix div by 0 in r_print_portionbar 2017-09-03 23:51:11 +02:00
pancake
1a55c6cd19 A bunch of fixes spotted by the r2diaphora integration 2017-09-03 20:47:05 +02:00
pancake
ca123cd1de Add ?eb to print portionbars 2017-09-03 01:42:45 +02:00
pancake
7d4db495eb Initial implementation of scr.rainbow for disasm and hexdump 2017-08-31 01:11:34 +02:00
pancake
ec2abcdebb Fix build on Linux 2017-08-30 17:49:33 +02:00
pancake
8ec5e65d84 Blindfix for #8349 - Fix build on macOS 10.7.5 2017-08-30 17:03:40 +02:00
pancake
2b181659f0 Fix regprofile parsing from remote lldb on ios-arm64 2017-08-30 01:17:39 +02:00
Giovanni
d084d92ff0 Coverity bugs 29 aug (#8376)
* 1380031 Resource leak
* 1380032 Logically dead code
* 1380034 Dereference before null check
* 1380035 Explicit null dereferenced + flavour
* 1361726 Resource leak
2017-08-29 12:39:04 +02:00
pancake
731ff16101 Fix null deref on old UNIXes passing NULL in realpath 2017-08-28 21:16:43 +02:00
xarkes
4e36b5b8aa Fixed meson build (#8358) 2017-08-28 15:09:58 +02:00
Fangrui Song
7ce2ab1672 Move libr/include/r_rbtree.h to libr/include/r_util/r_rbtree.h (#8345) 2017-08-27 23:56:08 +02:00
condret
8721100e2c a few changes to the rbtree. project "shadow sneak" is comming, and it
brings speed improvement for io.va
2017-08-27 22:46:39 +00:00
pancake
eaa6e6c8ba MacOSX <10.5 didn't had the copyfile syscall 2017-08-27 19:07:53 +02:00
pancake
8d8f74616c Fix #8253 - Alignment issue in pxw and arb 2017-08-27 19:07:29 +02:00
Fangrui Song
ee40472c9f Add io->map_skyline as an RVector of uncovered map parts to enable optimization of r_io_v{read,write}_at in the future (#8332)
* Add binary heap (as priority queue) to util/binheap.c
* Change cmp_less in r_vector.h to 3-way cmp
2017-08-27 18:05:58 +02:00
Fangrui Song
05fdeb12f2 Add red-black tree to util/r_rbtree.c 2017-08-26 23:13:47 +00:00
Khairul Azhar Kasmiran
a7a9a4b4ec Added octal esc handling to r_str_unescape (#8320) 2017-08-26 15:03:54 +02:00
Fangrui Song
c7467ed31e Add RVector (array of void* objects) to r_util (#8205)
* Add RVector to r_util
* Add r_vector_{lower,upper}_bound
* Add r_vector_sort
* Add r_vector_find r_vector_insert_range and rename some functions to be idiomatic
2017-08-26 13:05:14 +02:00
pancake
777090aa27 Implement om= and o= inside core, not io 2017-08-26 01:50:57 +02:00
Giovanni
6fe6564b8d Fixed 8 coverity bugs (#8305)
* 1372278 Identical code for different branches
* 1372276 Dereference after null check
* 1372273 Logically dead code
DEAD CODE. i must be between 1 and 9.
* 1372272 Logically dead code
At condition 64U - slen > 64U, the value of slen must be between 1 and 63.
At condition 64U - slen > 64U, the value of slen cannot be equal to 0.
The condition 64U - slen > 64U cannot be true.
* 1372265 Dereference after null check
* 1372264 Logically dead code
* 1372262 Logically dead code
* 1372258 Logically dead code
* 1372257 Unchecked return value
2017-08-25 18:12:12 +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
Giovanni
3851e7ea20 13 coverity bugs fixed. (#8303)
* 1372431 Unused value

* 1372425 Unused value

* 1372412 Dereference before null check

* 1372410/1372409 Resource leak

* 1372400 Dereference before null check

* 1372391/1372398 Resource leak

* 1372397 Dereference before null check

* 1372394 Resource leak

* 1372390 Dereference before null check

* 1372379 Dereference before null check

* 1372304 Resource leak

* 1372298: Out-of-bounds read & 1355090: Untrusted array index read

* 1372290 Dereference null return value

* 1372283 Missing break in switch

* fixed mistake.
2017-08-24 13:31:27 +02:00