You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The characterAtIndex:0 is unhappy when the string is empty. I don't yet understand why
this character appears---perhaps there is some PDF decoding that is wrong. I can supply
a document with these errors.
ches
The text was updated successfully, but these errors were encountered:
In Font.m, line 185, a zero character causes an array bounds exception. This work-around makes the crash go away, but might not be the solution:
{
NSStringEncoding stringEncoding = nativeEncoding(self.encoding);
const char str[] = {character, '\0'};
if (character == 0) {
// ches NSLog(@"encodedUnicodeValue: %x %x",stringEncoding, character);
return 0;
}
return [[NSString stringWithCString:str encoding:stringEncoding] characterAtIndex:0];
}
The characterAtIndex:0 is unhappy when the string is empty. I don't yet understand why
this character appears---perhaps there is some PDF decoding that is wrong. I can supply
a document with these errors.
ches
The text was updated successfully, but these errors were encountered: