File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ RemoteRef<char> TypeRefBuilder::readTypeRef(uint64_t remoteAddr) {
44
44
}
45
45
}
46
46
// TODO: Try using MetadataReader to read the string here?
47
- fputs (" invalid type ref pointer\n " , stderr);
48
- abort ();
47
+
48
+ // Invalid type ref pointer.
49
+ return nullptr ;
49
50
50
51
found_type_ref:
51
52
// Make sure there's a valid mangled string within the bounds of the
@@ -57,16 +58,16 @@ RemoteRef<char> TypeRefBuilder::readTypeRef(uint64_t remoteAddr) {
57
58
goto valid_type_ref;
58
59
59
60
if (c >= ' \1 ' && c <= ' \x17 ' )
60
- i = i.atByteOffset (4 );
61
+ i = i.atByteOffset (5 );
61
62
else if (c >= ' \x18 ' && c <= ' \x1F ' ) {
62
- i = i.atByteOffset (PointerSize);
63
+ i = i.atByteOffset (PointerSize + 1 );
63
64
} else {
64
65
i = i.atByteOffset (1 );
65
66
}
66
67
}
67
68
68
- fputs ( " unterminated type ref \n " , stderr);
69
- abort () ;
69
+ // Unterminated string.
70
+ return nullptr ;
70
71
71
72
valid_type_ref:
72
73
// Look past the $s prefix if the string has one.
You can’t perform that action at this time.
0 commit comments