Commit Graph

112 Commits

Author SHA1 Message Date
pancake
585ed184b6 Fix crash in canvas 2019-07-31 05:34:48 +02:00
Riccardo Schirone
2cdbfad225 Fix #14553 - Use HtUP to store canvas attributes instead of a sorted array (#14556) ##graph
This should improve performace as you don't need to shift elements of
the sorted array when you need to insert a new one.
2019-07-13 02:36:27 +02:00
pancake
027fd8c494 Add graph.body and graph.bubble config vars, move sin/cos into r_util ##graph 2019-06-29 01:07:25 +02:00
pancake
9b7a2b1d7b Initial implementation of RConsCanvas.circle and bubble graphs ##graph 2019-06-28 09:39:57 +02:00
radare
b435d19515
Code cleanup in RCons 2019-06-09 18:50:36 +02:00
Vanellope
f8f1daeb76 Fix the BG glitch () 2019-06-01 21:36:44 +02:00
Vanellope
9a0d05a709 Clean up the part of the code that fixed the glitch in ansi code (#14180) 2019-05-29 11:10:57 +02:00
Vanellope
fa0a9828fe Fix THE glitch affecting panels box colors ##cons 2019-05-28 03:26:23 +02:00
radare
f97847837d
Fix #13980 - Glitch in panels with bgcolor ##cons 2019-05-12 14:36:55 +02:00
radare
3f118abdee
Avoid passing fixed size buffers in RAnal.fcn, reducing the use of anal.bb.maxsz ##anal
* Remove many uses of max_bb_size
* Use anal.verbose in more places
* Fix 2 crashes in the graphs and the analysis
* Implement and use experimental read_ahead for anal
* Introduce read_ahead approach for testing io usage and performance in analysis
* More cleanup and expose a new api for RAnalOp
* Kill FCN_SDB and some more code cleanup
* Add bytes_read var, convert some addr + idx -> at and reinstate some len-based checks
* Ensure invalid insn handling doesn't check invalid data
* Move "Truncated instruction" err msg to r_anal_fcn_add_bb()
* Remove gotoBeachRet macro and just use the goto statement

/by @kazarmy @radare @ret2libc
2019-03-16 10:20:20 +01:00
radare
e31a91b84b
Fix crash in canvas, some leaks and random code cleanup (#13254) 2019-03-03 23:41:19 +01:00
David CARLIER
384fe0f903 Silencing/fixing clang warnings. (#12430) 2018-12-10 00:04:21 +01:00
dav1901
b88806f65f Fix more clang-analyzer warnings (#12424) 2018-12-06 16:55:09 +01:00
pancake
a33fc03725 Fix visual panels glitch and handle 's' in zoom mode ##visual
* And remove dead code
2018-10-20 02:12:30 +02:00
pancake
786feaa80b Fix one crash and one assert in the graph and remove one useless warning 2018-10-04 16:12:32 +02:00
Fangrui Song
3f0b38873d Reland #11181: replace sort_attrs (insertion sort) with a single insertion (#11201) 2018-08-23 01:35:18 +02:00
pancake
d2a6415556 Revert "Replace sort_attrs (insertion sort) with a single insertion (#11181)"
This reverts commit 884f057646.
2018-08-22 13:50:35 +02:00
Fangrui Song
884f057646 Replace sort_attrs (insertion sort) with a single insertion (#11181)
Fixes #11164
2018-08-22 11:10:22 +02:00
cyanpencil
104a52b55f Fix some utf8 bugs in canvas.c 2018-07-27 02:12:50 +08:00
cyanpencil
fc26f2a04e Use dotted lines in graph 2018-07-27 02:12:50 +08:00
cyanpencil
602c8bf53b Fix whitespace in canvas and str.c 2018-07-03 11:31:05 +08:00
cyanpencil
611ab267ef Support for fullwidth characters 2018-07-03 11:31:05 +08:00
Luca Di Bartolomeo
ea51883945 Fixed overflow in canvas.c (#10460) 2018-06-24 20:09:14 +02:00
Luca Di Bartolomeo
38bb81f98b Revert to old graph edges positioning (added an option) (#10430) 2018-06-20 17:49:25 +02:00
cyanpencil
dd6533e662 Fix travis whitespace in canvas.c 2018-06-20 11:22:59 +02:00
cyanpencil
2cf784ef49 Refactoring in canvas.c 2018-06-20 11:22:59 +02:00
cyanpencil
4b1fe1f7f9 Fix graph in panels rendering
Fix use after free in canvas resize

Fix utf8 working only in leftmost panel
2018-06-20 11:22:59 +02:00
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