mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
LibPDF/CFF: Add dbgln() when failing encoding bounds check
This commit is contained in:
parent
4705d38fa7
commit
05a7482118
1 changed files with 1 additions and 0 deletions
|
@ -280,6 +280,7 @@ PDFErrorOr<NonnullRefPtr<CFF>> CFF::create(ReadonlyBytes const& cff_bytes, RefPt
|
|||
continue;
|
||||
}
|
||||
if (i - 1 >= encoding_codes.size() || i - 1 >= charset_names.size()) {
|
||||
dbgln("CFF: No encoding for glyph {} onwards, encoding_codes size {} charset_names size {}", i, encoding_codes.size(), charset_names.size());
|
||||
break;
|
||||
}
|
||||
auto code = encoding_codes[i - 1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue