Skip to content

Commit

Permalink
Check utf8 support before pFat
Browse files Browse the repository at this point in the history
  • Loading branch information
0x8008135 committed Oct 18, 2024
1 parent 8f87a93 commit 9b7fdef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libr/core/cmd_print.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,11 @@ static void cmd_print_fromage(RCore *core, const char *input, const ut8* data, i
case 'a': // "pFa" // DER/ASN1 encoding
{
int fmt = input[1];

if (fmt == 't' && !r_config_get_b (core->config, "scr.utf8")) {
R_LOG_ERROR ("Tree view requires utf8 support");
break;
}
RAsn1 *a = r_asn1_new (data, size, fmt);
// RASN1Object *asn1 = r_asn1_object_parse (data, data, size, fmt);
if (a) {
Expand Down

0 comments on commit 9b7fdef

Please sign in to comment.