1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 10:17:35 +00:00
serenity/Userland/Libraries
Rodrigo Tobar de5e7b487c LibPDF: Improve Type2 hint counting
There were two issues with how we counted hints with Type2 CharString
commands: the first was that we assumed a single hint per command, even
though there are commands that accept multiple hints thanks to taking a
variable number of operands; and secondly, the hintmask/ctrlmask
commands can also take operands (i.e., hints) themselves in certain
situations.

This commit fixes these two issues by correctly counting hints in both
cases. This in turn fixes cases when there were more than 8 hints in
total, therefore a hintmask/ctrlmask command needed to read more than
one byte past the operator itself.
2023-03-02 12:18:53 +01:00
..
LibArchive Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibAudio LibAudio: Use the proper functions to read WAV samples 2023-02-27 18:28:12 +01:00
LibC Kernel: Move TYPEDEF_* TTY macros to API/ttydefaults.h file 2023-03-01 19:36:53 -07:00
LibCards LibCards: Make find_card_stack_to_drop_on() non-const 2023-02-21 00:54:04 +01:00
LibChess LibCore: Rename File to DeprecatedFile 2023-02-13 00:50:07 +00:00
LibCodeComprehension Everywhere: Use '_{short_,}string' literals more 2023-02-28 15:15:36 +00:00
LibCompress Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibConfig LibCore: Move Stream-based sockets into the Core namespace 2023-02-13 00:50:07 +00:00
LibCore LibCore+Userland: Remove ArgsParser::add*(Vector<char const*>&) 2023-03-01 10:47:19 +01:00
LibCoredump LibCore: Rename File to DeprecatedFile 2023-02-13 00:50:07 +00:00
LibCpp AK+Everywhere: Make GenericLexer::ignore_until() stop before the value 2023-02-28 12:55:10 +00:00
LibCrypt AK: Stop using DeprecatedString in Base64 encoding 2022-12-20 10:34:19 +01:00
LibCrypto Everywhere: Use _{short_,}string to create Strings from literals 2023-02-25 20:51:49 +01:00
LibDebug HackStudio: Add 'pause debuggee' button 2023-02-24 19:09:27 +01:00
LibDesktop LibCore: Move Stream-based sockets into the Core namespace 2023-02-13 00:50:07 +00:00
LibDeviceTree LibDeviceTree: Use unchecked_append() in path parsing 2023-02-24 23:56:37 +01:00
LibDiff LibDiff: Make Diff::generate_only_additions take text as StringView 2022-12-20 10:58:54 +01:00
LibDNS Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibDSP LibDSP: Don't crash on out-of-bounds parameter value 2023-02-25 20:49:41 -07:00
LibEDID LibEDID: Return proper errno codes for kernel code 2023-02-10 09:14:20 +00:00
LibELF Kernel+Userland: Refine preventing syscall annotations of Regions option 2023-02-24 22:26:07 +01:00
LibFileSystemAccessClient LibFileSystemAccessClient: Remove the deprecated API 2023-02-16 20:11:52 +01:00
LibGemini Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibGfx LibGfx+LibWeb: Propagate OOM when appending CanvasGradient color stops 2023-03-02 11:49:13 +01:00
LibGL LibGL: Fix minor const-correctness issues 2023-02-21 00:54:04 +01:00
LibGLSL Everywhere: Use _{short_,}string to create Strings from literals 2023-02-25 20:51:49 +01:00
LibGPU LibGPU: Remove DeprecatedString usage 2023-01-30 13:49:52 -05:00
LibGUI LibGUI: Give SeparatorWidget a minimum size 2023-03-01 10:55:20 +01:00
LibHTTP Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibIDL LibWeb+LibIDL: Fix (or paper over) various const-correctness issues 2023-02-21 00:54:04 +01:00
LibImageDecoderClient LibImageDecoderClient: Fix minor const-correctness issue 2023-02-21 00:54:04 +01:00
LibIMAP LibCore: Remove Stream.h 2023-02-13 00:50:07 +00:00
LibIPC LibIPC: Add a built-in encoder/decoder for AK::Time 2023-02-24 15:50:42 -05:00
LibJS LibJS: Use a Variant instead of two Optionals for ThrowCompletionOr 2023-03-01 17:55:42 +00:00
LibKeyboard LibCore: Rename File to DeprecatedFile 2023-02-13 00:50:07 +00:00
LibLine Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibLocale Everywhere: Use ReadonlySpan<T> instead of Span<T const> 2023-02-08 19:15:45 +00:00
LibMain Everywhere: Explicitly link all binaries against the LibC target 2022-11-01 14:49:09 +00:00
LibManual Everywhere: Use _{short_,}string to create Strings from literals 2023-02-25 20:51:49 +01:00
LibMarkdown AK: Remove StringBuilder::build() in favor of to_deprecated_string() 2023-01-27 20:38:49 +00:00
LibPartition LibPartition: Make Kernel parts const-correct re: StorageDevice& 2023-02-21 00:54:04 +01:00
LibPCIDB AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LibPDF LibPDF: Improve Type2 hint counting 2023-03-02 12:18:53 +01:00
LibProtocol Everywhere: Remove the AK:: qualifier from Stream usages 2023-02-13 00:50:07 +00:00
LibRegex LibRegex: Add to_string method for RegexStringView 2023-02-17 16:32:02 +00:00
LibSanitizer LibC: Properly implement stack protectors 2022-11-01 14:49:09 +00:00
LibSoftGPU LibSoftGPU: Use multiplication instead of division for linear fog 2023-02-18 01:45:00 +01:00
LibSQL LibSQL: Fix minor const-correctness issues 2023-02-21 00:54:04 +01:00
LibSymbolication Kernel+Userland: Add constants subdirectory at /sys/kernel directory 2023-02-19 13:47:11 +01:00
LibSyntax LibSyntax+LibGUI: Let syntax highlighters assign folding regions 2023-02-28 13:23:55 +01:00
LibSystem Meta+Userland: Add ENABLE_USERSPACE_COVERAGE_COLLECTION CMake option 2022-05-02 01:46:18 +02:00
LibTest LibCore+Everywhere: Remove ArgsParser::add*(char const*&) 2023-03-01 10:47:19 +01:00
LibTextCodec LibTextCodec/Latin1: Iterate over input string with u8 instead of char 2023-02-28 08:46:06 +00:00
LibThreading Everywhere: Remove unused includes of AK/Format.h 2023-01-02 20:27:20 -05:00
LibTimeZone Everywhere: Use ReadonlySpan<T> instead of Span<T const> 2023-02-08 19:15:45 +00:00
LibTLS LibCore: Remove Stream.h 2023-02-13 00:50:07 +00:00
LibUnicode LibUnicode: Allow ignoring text presentation emoji in sequence detection 2023-02-28 13:22:58 +00:00
LibUSBDB AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LibVideo LibVideo/VP9: Convert the Parser to use AK/BitStream.h 2023-02-13 00:22:23 +00:00
LibVirtGPU LibCore: Remove Stream.h 2023-02-13 00:50:07 +00:00
LibVT Everywhere: Use ReadonlySpan<T> instead of Span<T const> 2023-02-08 19:15:45 +00:00
LibWasm LibWasm+LibWeb: Sneak a JS::Completion into Wasm::Result 2023-02-26 10:54:23 +03:30
LibWeb LibGfx+LibWeb: Propagate OOM when appending CanvasGradient color stops 2023-03-02 11:49:13 +01:00
LibWebSocket LibCore: Move Stream-based sockets into the Core namespace 2023-02-13 00:50:07 +00:00
LibWebView LibWebView: Display Accessible Name and Description 2023-02-19 15:58:20 +01:00
LibX86 LibX86: Remove i686 support 2022-12-28 11:53:41 +01:00
LibXML AK: Check the return type in IsCallableWithArguments 2023-02-04 18:47:02 -07:00
CMakeLists.txt LibVirtGPU: Add a new GPU device that talks to our VirtIO-GPU driver 2022-12-26 09:39:20 +01:00