mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 12:41:59 +03: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: https://github.com/SerenityOS/serenity/commit/05a7482118 Pull-request: https://github.com/SerenityOS/serenity/pull/23265
@ -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…
Reference in New Issue
Block a user