19 Commits

Author SHA1 Message Date
pancake
f369ff2de3
Minor fixes for the asn1 parser 2022-06-23 13:32:37 +02:00
Lazula
ad749a0b1a Fix static/R_API function definition formatting
* Remove spaces before parens
* Remove spaces after asterisks
2021-12-21 20:58:12 +01:00
pancake
17743efd42 Fix #19446 - null derefs in the x509 parser ##crash 2021-11-28 22:18:11 +01:00
pancake
2b8671012f
Fix ASAN crash spotted after r_str_ndup refactoring in x509 (#18481)
* Reproducer: r2 SEGV-a94-0b5-0a6
2021-03-18 02:21:00 +01:00
phakeobj
1dca25c084
Fix null dereference in Pe64_bin_pe_compute_authentihash ##bin (#17466)
* Fail if ASN1 object is not ObjectID
* Fail if CMS contentType is NULL
* Fail if SpcAttributeTypeAndOptionalValue type is NULL
* Fail if cms contentType is not spcIndirectDataContext
* Use strcmp and r_return_val_if_fail
* Assert only on function arguments, not their contents

Co-authored-by: phakeobj <phakeobj@users.noreply.github.com>
2020-08-17 12:36:05 +08:00
radare
72093ac706
Fix #16138 - Do not preincrement when it's not necessary (#16151) 2020-03-05 19:06:59 +01:00
Florian Märkl
a98ddf66b2 Fix iCj for PE (#13579) 2019-03-31 18:21:47 +02:00
David CARLIER
ffab804e4b Fix #13297 proposal (#13299) 2019-03-07 08:58:14 +01:00
Riccardo Schirone
23161bbf7f Remove most warnings during compilation 2019-02-14 10:40:25 +01:00
Maijin
21cde44c7d Use pj for X509 and PKCS (#12877)
* Convert R_JSON to pj

* Ident

* iCj support

* Change return type

* Fix @deroad comments

* Fix last issue

* Fix empty output
2019-01-22 17:52:49 +01:00
dav1901
9b0fbf1ee4 Minor code cleanups - free/R_FREE/etc 2018-11-13 00:23:49 +01:00
Giovanni Dante Grazioli
fab6020b00 fixes for asn1 printer 2018-09-25 13:42:14 -07:00
pancake
d521843ae7 Use RStrBuf in pkcs/x509/asn1 APIs, use RCons from RCore to print that 2018-09-14 10:29:49 +02:00
pancake
e19835cbba Fix build 2018-09-14 01:51:00 +02:00
Giovanni
899719389f ASN.1 BER support, with pF[apx] (#11517) 2018-09-14 01:44:04 +02:00
Neven Sajko
4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
pancake
35bd0fbf06 Add pFo, parse certs from mach0's cdhash and minor x509 cleanup 2018-09-13 01:15:18 +02:00
radare
3cc11aa9fe
Some cleanup in ASN1/X509/PKCS7 to make pF work (#11499) 2018-09-12 18:43:59 +02:00
pancake
be89180e7b Cleaning up asn1 apis, standarize IS_* apis and some more cleanup 2018-05-21 22:13:07 +02:00