Commit Graph

34 Commits

Author SHA1 Message Date
radare 728bc70266
Optimize 'tl', r_core_link_stroff and r_type_link_at (0.01s vs 3s) ##types (#16257) 2020-03-19 15:44:51 +01:00
Florian Märkl 8945ec42be
Add R_TYPE_TYPEDEF to RTypeKind (#16243) ##types 2020-03-17 17:21:05 +01:00
Florian Märkl 03ef082668 Fix r_type_del() for typedefs (Fix #15337) ##anal (#15553) 2019-12-07 20:33:10 +01:00
GustavoLCR 87079ea21c Fix #14804 - Make sure anon structs have unique names (#14806)
* Also skip "union" to get type
2019-08-15 12:00:20 +08:00
radare 967b9e3a82
Fix some LGTM warnings (#14047) 2019-05-13 14:09:33 +02:00
David CARLIER a5899f7d3a Little warning cleanups (#13398) 2019-03-17 10:54:18 +01:00
Maijin 5b0408d17a
Simplify function guessing ##anal 2019-03-11 01:32:12 +08:00
pancake c022270b6d Minor fixes 2019-02-18 14:51:12 +01:00
Gaurav Kumar Ghildiyal 86e0862103 Compute struct/union size in tsj/tuj ##format 2019-02-18 00:06:23 +01:00
Khairul Azhar Kasmiran b4178702c8 Support typedef'd (anonymous) structs ##types 2019-02-06 22:08:50 +01:00
dav1901 cc26fd73ba Minor fixes/cleanups (#12349) 2018-11-29 11:22:32 +01:00
pancake 545efb319b Strictier CLOCK_MONOTONIC check and fix 2 warnings 2018-11-26 04:06:42 +01:00
Alex Kornitzer 35363f3885 ta command now takes an optional offset argument ##types
* types: allow an offset to be set for the struct itself

Not all pointers to structs start at the beginning, thanks Microsoft
with your implementation of list entries. Therefore this commit allows
you to tweak the 'entry point' to the struct when using the ta command.
NOTE: Annoyingly this file is formatted badly so there are lots of
additions due to linting!

* ctype: handle nested structs in get_struct_memb

r_type_get_struct_memb will now parse inline structs rather than
incorrectly bailing out

* types: apply changes from review #12322
2018-11-26 00:04:30 +01:00
sivaramaaa d824b6dc9b Improve function param detection by removing func-number from module_func-number (#12027) 2018-11-01 13:15:48 +08:00
pancake 816463ed70 Fix warnings in dmh 2018-10-08 11:33:51 +02:00
Riccardo Schirone e2278cc50f
sync sdb: some refactoring on how to access base SdbKv fields (#11741) 2018-10-05 15:21:46 +02:00
David CARLIER 70a651f019 Couple of leak fixes and dead code cleanup (#11682) 2018-09-28 11:39:50 +02:00
sivaramaaa 77424a217b Detect function prefixed with __libc_ and __GI_ (#11663) 2018-09-26 10:16:31 -07:00
radare cc8a2b84be
Introduce new R_* macros to define direction, null, defaults, etc in function signatures (#11546)
- Helps to identify some bugs at compile time
- Useful for git grep and understand the usage of the functions
- Improve readability
- Fix memleak introduced in previous anal/var pr
- Help to find unnecessary null checks and start to use r_assert
- Deprecate R_TRUFAE R_TRUE R_FALSE and R_ERROR
- Add r2api script to ease system-wide git grep for r2 devs
- Use more R_OWN and r_return_val_if_fail
2018-09-17 12:27:11 +02:00
radare 3cc11aa9fe
Some cleanup in ASN1/X509/PKCS7 to make pF work (#11499) 2018-09-12 18:43:59 +02:00
Riccardo Schirone cd7930dbe5
util: try to guess function name only when it contains "dll_" (#11236)
* util: interpret fcn name only if it has "dll_" prefix

Before this patch, a function automatically renamed to "sub.strlen_123"
was identified as a call to strlen, thus the strlen signature was added
as a comment next to a call to that function. This patch prevents that
behaviour.

* ctype: try to identify names with _ at the beginning
2018-08-27 14:13:38 +02:00
Paul I 620affc89e Fix some warnings (#11152) 2018-08-20 14:52:02 +08:00
pancake 95d346b611 Fix #10674 - pzq and gcc build 2018-07-09 01:13:29 +02:00
sivaramaaa c091dd8bf2 Few fixes for type propagation (#10466)
* Few fixes for type propagation

* Strip spaces in type
2018-06-24 20:09:44 +02:00
sivaramaaa 102eb99ea5 Move function pointer check out of if (#10374) 2018-06-18 00:08:19 +08:00
David Carlier 51175e54d7 Initialise the variable before usage. 2018-06-17 12:23:05 +02:00
sivaramaaa f57e86f9c5 Add op.ireg/scale to ARM and apply that in type link
* Add support to all kind of pointers for ts and tl
2018-06-16 18:24:48 +02:00
sivaramaaa 82ee7b760f Support function pointer in struct with ts 2018-06-16 18:24:48 +02:00
sivaramaaa 17a77857b9 Intial work for union support (#10340) 2018-06-13 23:56:45 +02:00
sivaramaaa 08d9dfcfcd Added a few enhancment to struct offset propagation 2018-06-05 23:01:18 +02:00
sivaramaaa 8cc5f0216c Intial work on struct offset propagation 2018-05-31 19:05:54 +02:00
pancake 5827f2b045 Fix symstall issues 2018-05-30 18:11:14 +02:00
pancake 9b91799591 Fix memleak and null deref in types 2018-05-30 17:26:04 +02:00
pancake be89180e7b Cleaning up asn1 apis, standarize IS_* apis and some more cleanup 2018-05-21 22:13:07 +02:00