ladybird/Libraries
Andreas Kling 943319453d LibJS: Fix syntax highlighter position starting at invalid sentinel
The RehighlightState designated initializer used `.position = {}`
which invokes TextPosition's default constructor, initializing line
and column to 0xFFFFFFFF (the "invalid" sentinel). This overrode
the struct's default member initializer of { 0, 0 }.

When advance_position() processed the first newline, it incremented
0xFFFFFFFF to 0x100000000, producing line numbers in the billions.
These bogus positions propagated into folding regions, causing an
out-of-bounds crash in Document::set_folding_regions() when viewing
page source on pages with <script> blocks.

Fix by explicitly initializing position to { 0, 0 }.

Fixes #8529.
2026-03-20 15:32:33 +01:00
..
LibCompress LibCompress: Remove unused header in Gzip 2026-02-23 12:15:23 +01:00
LibCore LibCore+LibWeb: Add ScopedAutoreleasePool and use it on macOS 2026-03-15 11:42:43 +01:00
LibCrypto LibCrypto: Use EVP_EncryptInit instead of EVP_DecryptInit in GCM encrypt 2026-03-19 22:28:26 +01:00
LibDatabase LibDatabase: Allow String values to contain embedded null bytes 2026-02-14 10:25:33 -05:00
LibDevTools AK+Everywhere: Add and use weak_callback() 2026-02-26 08:03:50 -05:00
LibDiff CMake: Rename serenity_* helper functions/macros to ladybird_* 2025-07-03 23:19:41 +02:00
LibDNS LibDNS: Remove unused header in Message 2026-02-23 12:15:23 +01:00
LibFileSystem LibCore: Remove LibCoreMinimal 2026-02-26 18:31:57 +01:00
LibGC LibGC: Add missing & in Weak assignment 2026-03-14 21:35:06 -05:00
LibGfx LibGfx+LibWeb: Move Skia backend context to process level singleton 2026-03-19 13:35:16 +01:00
LibHTTP LibHTTP: Ignore empty list elements when extracting token headers 2026-03-16 13:55:26 +01:00
LibIDL LibIDL: Track referenced interfaces for an interface 2026-03-11 21:16:44 +01:00
LibImageDecoderClient LibImageDecoderClient: Remove sync id fetch from async decode request 2026-02-28 00:04:06 -06:00
LibIPC LibIPC: Disable unused LocalSocket notifier in TransportSocket 2026-03-19 09:44:22 +01:00
LibJS LibJS: Fix syntax highlighter position starting at invalid sentinel 2026-03-20 15:32:33 +01:00
LibLine LibCore: Remove unused header in EventLoop 2026-02-21 19:27:35 +01:00
LibMain AK: Expose helpers to invoke Windows runtime config directly in main() 2025-10-29 21:07:52 -06:00
LibMedia LibWeb: Keep the media element alive until fetches complete 2026-03-01 23:13:22 -06:00
LibRegex LibRegex: Track optional capture groups for match_length_minimum 2026-02-26 13:50:11 +01:00
LibRequests LibCore: Remove unused header in EventReceiver 2026-02-21 19:27:35 +01:00
LibSyntax LibSyntax: Include RefCounted in Document.h 2026-01-23 09:20:15 +01:00
LibTest LibJS+LibWeb: Port remaining callers to Rust pipeline 2026-03-19 21:55:10 -05:00
LibTextCodec LibTextEncoder/LibURL: Cleanup includes 2026-02-26 18:31:57 +01:00
LibThreading LibThreading: Fix data race in RWLock::unlock() 2026-03-07 13:09:50 +01:00
LibTLS LibTLS: Use Windows-specific method to set default certificate store 2025-08-23 18:35:45 -06:00
LibUnicode LibUnicode: Apply workspace clippy lints to Rust code 2026-03-18 08:36:13 -04:00
LibURL LibURL/Pattern: Ignore extra RegExp captures in match result 2026-03-20 11:29:15 +01:00
LibWasm LibWasm: Remove Vector size checks in (return_)call_indirect 2026-03-07 16:05:20 +01:00
LibWeb LibWeb: Add missing AD-HOC comment to parse_family_name_value 2026-03-20 14:06:39 +00:00
LibWebSocket LibWebSocket: Fix close frame status code written in wrong byte order 2026-03-13 17:28:06 +01:00
LibWebView LibJS: Remove C++ lexer, use Rust tokenizer for syntax highlighting 2026-03-19 21:55:10 -05:00
LibXML LibXML+LibWeb: Use existing HTML entities table for XML parsing too 2026-01-09 19:13:41 +00:00
CMakeLists.txt LibCore: Explicitly export symbols from LibCore 2026-02-26 18:31:57 +01:00