mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 05:07:35 +00:00
LibPDF/CFF: Add dbgln() when failing encoding bounds check
This commit is contained in:
parent
4705d38fa7
commit
05a7482118
Notes:
sideshowbarker
2024-07-18 05:37:06 +09:00
Author: https://github.com/nico
Commit: 05a7482118
Pull-request: https://github.com/SerenityOS/serenity/pull/23265
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