serenity/Tests
Timothy Flynn f630a5ca71 AK+LibJS: Remove error-prone JsonValue constructor
Consider the following:

    JsonValue value { JsonValue::Type::Object };
    value.as_object().set("foo"sv, "bar"sv);

The JsonValue(Type) constructor does not initialize the underlying union
that stores its value. Thus JsonValue::as_object() will A) refer to an
uninitialized union member, B) deference that member.

This constructor only has 2 users, both of which initialize the type to
Type::Null. Rather than implementing unused functionality here, replace
those uses with the default JsonValue constructor, and remove the faulty
constructor.
2023-11-01 11:15:26 -04:00
..
AK AK+LibPDF: Make Format print floats in a roundtrip-safe way by default 2023-10-31 09:12:35 +03:30
Kernel Kernel/Ext2: Avoid overflow when updating UID and GID values 2023-10-24 07:21:11 +02:00
LibAudio LibAudio: Implement PlaybackStream for macOS using Audio Unit framework 2023-09-09 13:03:36 -04:00
LibC AK+Everywhere: Remove the null state of DeprecatedString 2023-10-13 18:33:21 +03:30
LibCompress LibCompress: Implement correct validation of last filters 2023-10-29 22:00:59 +01:00
LibCore LibCore: Make MappedFile a Stream 2023-09-27 03:22:56 +02:00
LibCpp AK: Rename Stream::read_entire_buffer to Stream::read_until_filled 2023-03-13 15:16:20 +00:00
LibCrypto LibCrypto: Add Chacha20Poly1305 2023-09-26 13:22:04 +03:30
LibDiff LibDiff: Fix wrong index used when prepending context lines 2023-09-11 12:10:50 +01:00
LibEDID AK: Rename AK::FixedPoint::round to rint and fix a rounding error 2023-08-14 14:20:45 -06:00
LibELF Tests/LibELF: Test loading libraries with dynamic TLS 2023-08-18 16:20:13 +02:00
LibGfx Userland+Tests: Remove uses of direct file loading for BitmapFont 2023-10-29 13:12:28 -06:00
LibGL LibGfx: Move all image loaders and writers to a subdirectory 2023-03-21 22:39:25 +01:00
LibGLSL LibGLSL: Add tests for GLSL parser 2023-08-18 15:29:48 +02:00
LibIMAP LibIMAP: Handle invalid escape sequences in Quoted-Printable parser 2023-10-06 22:31:43 +02:00
LibJS AK+LibJS: Remove error-prone JsonValue constructor 2023-11-01 11:15:26 -04:00
LibLocale LibLocale+LibJS+ClockSettings: Make date time format APIs infallible 2023-08-23 05:29:21 +02:00
LibMarkdown AK: Rename Stream::read_entire_buffer to Stream::read_until_filled 2023-03-13 15:16:20 +00:00
LibPDF LibPDF: Don't use unsanitized values in error messages 2023-10-26 11:05:32 +02:00
LibRegex LibRegex: Don't add the Repeat instruction size to its jump target 2023-09-15 18:07:23 +03:30
LibSQL LibSQL: Remove Core::EventReceiver parent from SQL::Relation 2023-08-07 14:38:38 -04:00
LibTest LibTest: Add a suite of tests for the generators 2023-10-26 17:26:52 -06:00
LibTextCodec LibTextCodec+Everywhere: Port Decoders to new Strings 2023-02-19 17:15:47 +01:00
LibThreading LibThreading: Improve resiliancy of timed threading tests 2023-05-24 00:25:35 +02:00
LibTimeZone LibTimeZone+Userland: Change timezone functions to use UnixDateTime 2023-05-24 23:18:07 +02:00
LibTLS LibTLS: Don't attempt to read past EOF when parsing TBSCertificate 2023-10-11 07:08:22 +02:00
LibTTF Tests: Correct serenity_test() invocation for LibTTF 2023-01-19 11:50:10 +00:00
LibUnicode LibUnicode: Update to Unicode version 15.1.0 2023-09-15 18:30:26 +02:00
LibVideo Tests: Add regression tests for fixed OSS-Fuzz test cases 2023-10-24 07:30:04 +02:00
LibWasm Meta: Generate bigint values for v128 constants in Wasm tests 2023-08-21 13:39:32 +03:30
LibWeb LibWeb: Set table width to GRIDMAX if calculated value is max-content 2023-10-31 18:13:14 +01:00
LibWebView LibWebView: Protect URL highlighting against partially-typed URLs 2023-10-28 19:03:19 +02:00
LibXML LibXML: Actually append resolved references when parsing content 2023-07-23 16:09:12 +02:00
Spreadsheet test-js: Remove ability to run with AST interpreter 2023-08-08 13:07:13 +02:00
UserspaceEmulator Everywhere: Remove unused includes of LibC/stdlib.h 2023-01-02 20:27:20 -05:00
Utilities LibDiff+patch: Support multiple patches in a single patch file 2023-07-30 07:47:22 +01:00
CMakeLists.txt LibWebView: Protect URL highlighting against partially-typed URLs 2023-10-28 19:03:19 +02:00