Skip to content

Commit e4d319d

Browse files
committed
Sanitize image names before emitting r2 script commands
1 parent b8a38d8 commit e4d319d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ static bool emit_r2_method(R2UnityMetadata *meta,
459459
r_name_filter (fullname, -1);
460460
char *attrs = method_attrs (m->flags);
461461
char *im = img? r2unity_get_string (meta, img->nameIndex): NULL;
462+
if (im && *im) {
463+
r_name_filter (im, -1);
464+
}
462465
if (im && *im) {
463466
printf ("'@0x%" PFMT64x "'f sym.unity.%s.%s\n", addr, im, fullname);
464467
printf ("'@0x%" PFMT64x "'CCu Method: [%s]%s%s %s\n",

0 commit comments

Comments
 (0)