Commit Graph

85 Commits

Author SHA1 Message Date
pancake
04f54cc7dd Fix crashes in graph and canvas 2018-06-19 01:05:25 +02:00
pancake
4e648db8fa Fix warnings in RCons 2018-06-17 12:49:26 +02:00
cyanpencil
c3366d9004 fix color crashes in panels 2018-06-16 20:42:46 +02:00
cyanpencil
5c1ce98280 fix coverity defects 2018-06-14 17:46:20 +02:00
Luca Di Bartolomeo
36eb3aa558 Fix overflow in canvas.c + fix utf8 crop (#10336) 2018-06-13 12:55:36 +02:00
Luca Di Bartolomeo
83e85ee07f UTF-8 support in canvas (panels, graph) (#10319) 2018-06-12 13:05:47 +02:00
Vanellope
0f8fd93806 Cleaned up rubbish (#10292) 2018-06-10 03:27:29 +02:00
Khairul Kasmiran
2faadf6d86 r_cons_singleton() 🠊 r_cons_singleton () 2018-05-02 21:36:08 +08:00
pancake
848981912f Fix last covs, and some reindents 2018-04-11 10:25:22 +02:00
pancake
6428824bc6 Fix asan issue with graph initialization 2018-03-07 12:47:39 +01:00
pancake
92fc73f7d9 Partially enable utf8 in visual panels and honor color theme 2018-03-05 23:32:27 +01:00
pancake
8d675ab95a Fix glitch in graph cropping introduced in 173c7ee49f 2018-03-01 12:01:29 +01:00
pancake
d8911ce002 Add ed command to edit ~/.radare2rc 2018-02-21 02:18:04 +01:00
pancake
b49314a94b Add graph.edges, bringback the linemode=0 and add the graph+dis mode 2017-12-29 11:22:22 +01:00
pancake
d355a9c93e Bring back the canvas trimming and fix again visual glitch with 1 node graphs 2017-11-26 02:25:57 +01:00
pancake
c830c67a08 Fix rendering interactive visual graph with only 1 node 2017-11-26 01:32:52 +01:00
Srimanta Barua
41ce16b314 added curved corners (#8660) 2017-10-08 13:09:27 +02:00
Rene Laemmert
fcdf5793f1 Fix node glitches in graph with magic numbers (#8578) 2017-09-22 09:12:01 +02:00
pancake
c09e0f3748 Fix leak in cons_setattr 2017-09-17 01:41:27 +02:00
pancake
829009a339 Revert "fix leak in cons/canvas:set_attr by strdupping everything"
This reverts commit 00074b3a44.
2017-09-17 01:41:08 +02:00
Rakholiya Jenish
00074b3a44 fix leak in cons/canvas:set_attr by strdupping everything
fix formatting
2017-09-15 14:32:07 +08: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
pancake
4bf5c94bf6 More optimizations for RConsCanvas 2017-02-13 01:31:43 +01:00
pancake
ea5740da57 Optimize prefixline in cons/canvas 2017-02-13 00:58:25 +01:00
Álvaro Felipe Melchor
f8a5f88440 Fix #6564 - agf can be stopped 2017-01-28 13:33:01 +01:00
pancake
fa26f1f2cc Add experimental horizontal layout and diagonal lines via graph.linemode/layout 2017-01-14 01:14:50 +01:00
Álvaro Felipe Melchor
00b0f8fb0e Update focus theme and fix crash when switching themes 2016-11-07 18:38:45 +01:00
pancake
02950398a9 Add utf8 rune support for RCons.canvas 2016-10-21 01:24:40 +02:00
Sven Steinbauer
8da8ad740f Cleanup fixes
* For commit comments and compiler errors
* Fixes for PR comments
* fix some "infer fixes" commits

Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2016-05-23 11:25:44 +02:00
pancake
991c39a601 More whitelisted auto-indented files 2015-12-08 13:24:21 +01:00
pancake
d24d069ade Initial work on automatic indent whitelisting 2015-12-08 12:55:29 +01:00
pancake
9c9bb2dbd5 Memory optimization for flags (-70%) + some warnfixes + sdb-sync 2015-11-08 23:38:42 +01:00
Riccardo Schirone
e54462343d core/graph: honor scr.color also for edges and current box 2015-10-14 00:10:17 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
jvoisin
fbe8b6d938 Once again, clang-analyzer strikes! 2015-09-04 15:12:42 +02:00
Riccardo Schirone
e2482345eb cons/canvas: fix bold attributes 2015-08-09 22:17:56 +02:00
Álvaro Felipe Melchor
19c48e7edb Fix oob read in prefixline and oob write in r_cons_canvas_write 2015-08-01 00:42:30 +02:00
Jeffrey Crowell
05638b4cfe fix COV (REVERSE_NULL) 2015-07-30 23:18:28 -04:00
Riccardo Schirone
6007ca4fde cons/canvas,core/graph: fix some CIDs 2015-07-31 00:05:56 +02:00
Riccardo Schirone
a26c484db9 cons/canvas: fix w32 build 2015-07-30 15:40:15 +02:00
Riccardo Schirone
fc42e8a2a6 cons/canvas: support ansi strings
core/graph: use colored disassembly as default
2015-07-30 01:05:31 +02:00
Riccardo Schirone
94f303ca36 core/graph: clean code + fixes
cons/canvas_line: split style in color and symbol

In this way you can choose to apply a color and/or a symbol (t/f/v) to a
line. This patch also changes core/graph to avoid t/f symbols in the
middle of long edges.

cons/canvas_line: fix "reversed" edge

core/graph: center current node when changing function
2015-07-27 12:29:18 +02:00
pancake
df25085ffe Add custom color support for graphs and handle VVR and VVVq 2015-07-15 15:54:20 +02:00
pancake
f802bdf3b1 Add afg command to print non-interactive ascii-art graph 2015-06-11 03:55:15 +02:00
Riccardo Schirone
8cb35540c7 cons: use all the available space in the screen
* r_cons_get_size should return the number of rows, why is there a "-1"?
* the newline at the end of the canvas converted to string (in
  r_cons_canvas_to_string) make things shift up one line
* r_cons_canvas_write should consider "left" (which is the number of
  chars available from x until the right side of the screen) and not
  "left - 1". Moreover, since "slen" is at most the maximum number of
  characters that we can print in that row, there is no need to check
  if we can write those bytes
* r_cons_flush usually add a newline, but we shouldn't print it because
  otherwise everything will shift up by one line
2015-06-04 19:11:16 +02:00
pancake
bb151c1607 Fix two out-of-canvas node location and missing box lines issues 2015-05-31 22:27:47 +02:00
Riccardo Schirone
36a89dc370 cons/canvas: fix printing of partially visible borders of a box 2015-05-31 20:20:32 +02:00
Riccardo Schirone
ac3a153925 cons/canvas: remove useless condition because always true 2015-05-31 20:20:31 +02:00
Riccardo Schirone
632aa56bb8 r_cons_canvas_write: not stop writing when there is an empty line
some lines can seem empty because what we want to write was cropped, but
this shouldn't deny the next lines, that can be longer and so, still
visible, to be printed.
2015-05-31 20:20:31 +02:00
pancake
4b1a487649 Fix crash in RConsCanvas and type in RCoreConfig description 2015-03-23 10:19:53 +01:00