ladybird/Tests
Timothy Flynn 9e5abec6f1 AK: Invalidate UTF-8 encoded code points larger than U+10ffff
On oss-fuzz, the LibJS REPL is provided a file encoded with Windows-1252
with the following contents:

    /ô¡°½/

The REPL assumes the input file is UTF-8. So in Windows-1252, the above
is represented as [0x2f 0xf4 0xa1 0xb0 0xbd 0x2f]. The inner 4 bytes are
actually a valid UTF-8 encoding if we only look at the most significant
bits to parse leading/continuation bytes. However, it decodes to the
code point U+121c3d, which is not a valid code point.

This commit adds additional validation to ensure the decoded code point
itself is also valid.
2022-04-05 00:14:29 +01:00
..
AK AK: Invalidate UTF-8 encoded code points larger than U+10ffff 2022-04-05 00:14:29 +01:00
Kernel Tests: Make TestEFault not rely on automatic guard pages 2022-04-03 21:51:58 +02:00
LibC Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LibCompress Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LibCore
LibCpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LibCrypto Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LibEDID
LibELF Userland+Tests: Convert File::read_link() from String to ErrorOr<String> 2022-03-24 11:57:51 +01:00
LibGfx Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LibGL
LibIMAP Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LibJS LibTest: Provide detailed per-file JSON output with --per-file 2022-03-16 15:44:52 +00:00
LibM Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LibMarkdown Everywhere: Move commonmark.spec.json to /home/anon/Tests 2022-03-20 22:20:59 +01:00
LibPDF LibPDF: Add implementation of the Standard security handler 2022-03-29 02:52:57 +02:00
LibPthread
LibRegex Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LibSQL Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LibTest
LibTextCodec Tests: Add a basic UTF-8 to UTF-8 LibTextCodec test 2022-03-29 01:01:32 +02:00
LibThreading
LibTimeZone
LibTLS Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LibTTF Tests: Add some test coverage for the TTF parser 2022-04-03 19:16:03 +02:00
LibUnicode
LibWasm Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LibWeb Tests: Port TestHTMLTokenizer to Core::Stream 2022-03-10 12:04:22 -05:00
Spreadsheet LibJS: Add infallible variant of VM::push_execution_context() 2022-03-18 01:12:12 +01:00
UserspaceEmulator Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
CMakeLists.txt Tests: Add a basic UTF-8 to UTF-8 LibTextCodec test 2022-03-29 01:01:32 +02:00