ladybird/Tests
Ben Wiederhake ff8f3814cc AK+Tests: Avoid creating invalid code points from malformed UTF-8
Instead of doing anything reasonable, Utf8CodePointIterator returned
invalid code points, for example U+123456. However, many callers of this
iterator assume that a code point is always at most 0x10FFFF.

In fact, this is one of two reasons for the following OSS Fuzz issue:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=49184
This is probably a very old bug.

In the particular case of URLParser, AK::is_url_code_point got confused:
    return /* ... */ || code_point >= 0xA0;
If code_point is a "code point" beyond 0x10FFFF, this violates the
condition given in the preceding comment, but satisfies the given
condition, which eventually causes URLParser to crash.

This commit fixes *only* the erroneous UTF-8 decoding, and does not
fully resolve OSS-Fuzz#49184.
2022-10-09 10:37:20 -06:00
..
AK AK+Tests: Avoid creating invalid code points from malformed UTF-8 2022-10-09 10:37:20 -06:00
Kernel AK+Everywhere: Add AK_COMPILER_{GCC,CLANG} and use them most places 2022-10-04 23:35:07 +01:00
LibAudio Meta+Tests: Allow running FLAC spec tests 2022-09-02 23:54:50 +01:00
LibC LibC: Implement mkstemps() in stdlib and add a test 2022-10-06 16:14:40 +01:00
LibCompress LibCompress+Tests: Demonstrate and fix faulty metadata length 2022-09-17 04:10:11 +00:00
LibCore LibCore: Implement four-digit modes for FilePermissionsMask parsing 2022-07-27 21:45:01 +00:00
LibCpp Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
LibCrypto LibCrypto: Add a constructor to (Un)SignedBigInteger taking a double 2022-08-26 19:18:26 +01:00
LibEDID LibEDID: Fix handling extension maps 2022-01-24 19:29:06 +00:00
LibELF LibC: Remove the LibDl interface target 2022-09-05 10:12:02 +01:00
LibGfx Tests: Update TestFontHandling and add new test 2022-08-04 02:54:00 +02:00
LibGL LibGL: Make GL::create_context fallible 2022-09-16 15:32:38 +02:00
LibIMAP Tests: Convert TestQuotedPrintable decode test to use StringViews 2022-07-12 23:11:35 +02:00
LibJS AK+LibJS: Handle NaN-boxing pointers on AArch64 2022-09-21 11:55:57 +02:00
LibLocale LibLocale: Move locale source files to the LibLocale library 2022-09-05 14:37:16 -04:00
LibMarkdown Tests: Add a test for markdown image sizes 2022-08-04 02:49:29 +02:00
LibPDF Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
LibRegex LibRegex: Account for eof after \<x> when 'x' leads to legacy behaviour 2022-09-12 16:03:57 +04:30
LibSQL Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
LibTest LibTest: Add EXPECT_NO_CRASH 2021-12-19 14:22:06 -08:00
LibTextCodec Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
LibThreading LibC: Remove the LibPthread interface target 2022-07-19 11:00:35 +01:00
LibTimeZone LibTimeZone: Use the last DST rule in the TZDB if a match isn't found 2022-09-28 23:52:51 +01:00
LibTLS Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
LibTTF LibGfx: Move TTF files from TrueTypeFont/ to Font/TrueType/ 2022-04-09 23:48:18 +02:00
LibUnicode LibUnicode: Update code point ideographic replacements for Unicode 15 2022-10-07 18:17:40 +01:00
LibWasm LibJS: Move intrinsics to the realm 2022-08-27 11:29:10 +01:00
LibWeb Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
LibXML Everywhere: Add sv suffix to strings relying on StringView(char const*) 2022-07-12 23:11:35 +02:00
Spreadsheet LibUnicode+Userland: Migrate generated CLDR data to LibLocaleData 2022-09-05 14:37:16 -04:00
UserspaceEmulator Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
CMakeLists.txt Tests: Move the former LibM test into the LibC namespace 2022-09-16 16:09:19 +00:00