ladybird/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP
Ben Wiederhake 3aeb57ed09 AK+Everywhere: Fix data corruption due to code-point-to-char conversion
In particular, StringView::contains(char) is often used with a u32
code point. When this is done, the compiler will for some reason allow
data corruption to occur silently.

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 /* ... */ || "!$&'()*+,-./:;=?@_~"sv.contains(code_point);
If code_point is a large code point that happens to have the correct
lower bytes, AK::is_url_code_point is then convinced that the given
code point is okay, even if it is actually problematic.

This commit fixes *only* the silent data corruption due to the erroneous
conversion, and does not fully resolve OSS-Fuzz#49184.
2022-10-09 10:37:20 -06:00
..
Bodies.cpp LibJS: Make PromiseCapability GC-allocated 2022-10-02 23:02:27 +01:00
Bodies.h LibJS: Make PromiseCapability GC-allocated 2022-10-02 23:02:27 +01:00
Headers.cpp AK+Everywhere: Fix data corruption due to code-point-to-char conversion 2022-10-09 10:37:20 -06:00
Headers.h LibWeb: Implement '5.4. Request class' from the Fetch API :^) 2022-09-27 14:56:17 +01:00
Methods.cpp LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespace 2022-07-19 00:27:35 +01:00
Methods.h LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespace 2022-07-19 00:27:35 +01:00
Requests.cpp LibWeb: Make Fetch::Infrastructure::{Request,Response} ref-counted 2022-10-05 09:14:49 +01:00
Requests.h LibWeb: Make Fetch::Infrastructure::{Request,Response} ref-counted 2022-10-05 09:14:49 +01:00
Responses.cpp LibWeb: Make Fetch::Infrastructure::{Request,Response} ref-counted 2022-10-05 09:14:49 +01:00
Responses.h LibWeb: Make Fetch::Infrastructure::{Request,Response} ref-counted 2022-10-05 09:14:49 +01:00
Statuses.cpp LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespace 2022-07-19 00:27:35 +01:00
Statuses.h LibWeb: Move Fetch infra into the Web::Fetch::Infrastructure namespace 2022-07-19 00:27:35 +01:00