Files
serenity/Userland/Libraries/LibPDF/Document.cpp
Nico Weber 247e7bcb59 LibPDF: Make Document::text_string_to_utf8() fallible
TextCodec does not return Error for invalid UTF-8 or UTF-16, so
this only propagates allocation errors. No expected behavior change
in practice even for invalid PDFs. Removes three calls to
release_value_but_fixme_should_propagate_errors(), mostly for
aesthetic reasons.
2024-10-16 19:31:50 -04:00

24 KiB