Commit graph

36871 commits

Author SHA1 Message Date
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
Karol Kosek 119873b822 LibWeb: Make default text-decoration-thickness a fraction of font height
Previously the default was always 1px, which didn't look great on higher
font sizes.

This changes the default thickness to one-tenth to the font height. The
one-tenth part was chosen arbitrarily, but I think it does the job
pretty well. :^)
2022-04-04 23:44:04 +01:00
James Mintram df9a833d7a Kernel: Add VERIFY_NOT_REACHED to aarch64 PageDirectory.cpp 2022-04-04 14:35:54 -07:00
James Mintram 283d8e8f51 Kernel: Add VERIFY_NOT_REACHED to aarch64 locking functions 2022-04-04 14:35:54 -07:00
James Mintram e98ea8a977 Kernel: Add VERIFY_NOT_REACHED to the aarch64 handle_crash function 2022-04-04 14:35:54 -07:00
James Mintram d014c0501d Kernel: Remove unused dummy function from dummy.cpp 2022-04-04 14:35:54 -07:00
James Mintram bd7acd4b90 Kernel: Add VERIFY_NOT_REACHED to stub functions in aarch64 dummy.cpp 2022-04-04 14:35:54 -07:00
James Mintram 92a8383101 Kernel: Add VERIFY_NOT_REACHED to stub aarch64 Processor functions 2022-04-04 14:35:54 -07:00
James Mintram 463910df98 Kernel: Print out assertion info in __assertion_failed on aarch64 2022-04-04 22:25:33 +01:00
Ali Chraghi 04ec13cb14 Base: Update Python filetype icon 2022-04-04 22:06:48 +01:00
Ali Chraghi 44f05bc0cb Base: Update PHP filetype icon 2022-04-04 22:06:48 +01:00
Ali Chraghi 8dc071aa28 Base: Update C++ filetype icon 2022-04-04 22:06:48 +01:00
Ali Chraghi bcee4f6ffe Base: Update C filetype icon 2022-04-04 22:06:48 +01:00
Ali Chraghi ca5b939fcf Base: Update crash reporter icon 2022-04-04 22:06:48 +01:00
Ali Chraghi 7bed8d72b8 Base: Update socket filetype icon 2022-04-04 22:06:48 +01:00
Ali Chraghi 79c74eb5e1 Base: Update 32x32/MessageBoxQuestion icon 2022-04-04 22:06:48 +01:00
Ali Chraghi d3f7d0f7a7 Base: Update 32x32/MessageBoxWarning icon 2022-04-04 22:06:48 +01:00
djwisdom 034111672b Base: Add font Ataraxia Bold 2022-04-04 21:59:33 +01:00
djwisdom fc4696c741 Base: Update font Ataraxia Latin-1 Supplement 2022-04-04 21:59:33 +01:00
Linus Groh 421d9a6361 LibJS: Fix typo in a variable name in get_substitution() 2022-04-04 20:35:57 +01:00
Linus Groh 0057d489bd LibJS: Fix some clang-tidy warnings in Temporal
- Remove unused declarations of removed functions
- Remove unused includes
- Declare pointer values as `auto*`
2022-04-04 19:22:58 +01:00
Linus Groh f0523aa098 LibJS: Use MUST() instead of TRY() for two infallible Temporal AOs
These were incorrectly used during the conversion from exception checks
to completions.
2022-04-04 19:04:07 +01:00
Andreas Kling 9bb45ab3a6 Kernel: Add debug logging to learn more about unexpected NP faults 2022-04-04 17:10:30 +02:00
Igor Pissolati 5560d8a25d LibWeb: Use correct global object in legacy factories 2022-04-04 14:22:16 +01:00
Matthew Olsson 195572dd2a PDFViewer: Propagate more errors 2022-04-04 14:59:37 +02:00
Matthew Olsson 1fdcf57c0b PDFViewer: Autosize page label 2022-04-04 14:59:37 +02:00
Matthew Olsson 2b9ffe2989 LibGUI: Add optional autosize padding 2022-04-04 14:59:37 +02:00
Matthew Olsson baac720e13 PDFViewer: Respect page navigation features in multi-page mode
This includes the text box and the page up/down arrows.
2022-04-04 14:59:37 +02:00
Matthew Olsson 3ecb41b7d9 PDFViewer: Support a continuous page view mode 2022-04-04 14:59:37 +02:00
Matthew Olsson 091c2cfdca PDFViewer: Add page mode option 2022-04-04 14:59:37 +02:00
Matthew Olsson c39718ca81 PDFViewer: Don't change pages on horizontal scroll
This was a bit jarring, and didn't align with the behavior of other PDF
renderers.
2022-04-04 14:59:37 +02:00
Matthew Olsson b2f79a74d4 PDFViewer: Clear rendered page cache on application resize
When resizing the application, the pages are expected to grow or shrink
proportionally. This means that after a resize, we need to rerender
every page.
2022-04-04 14:59:37 +02:00
Igor Pissolati 8da99c3014 LibWeb: Add legacy Option factory function 2022-04-04 13:53:26 +01:00
Igor Pissolati 6c78e19616 LibWeb: Add spec comments to ImageConstructor::construct() 2022-04-04 13:53:26 +01:00
cflip 5bb0b6ba7a ClockSettings+Taskbar: Add settings for taskbar clock format 2022-04-04 13:15:13 +02:00
Brandon Doornbos 36b6356ce5 Documentation: Add instructions for building images without root
I could not find the fuse2fs or equivalent packages for the other
distros, so it is represented separately for each distro that does
have it.
2022-04-04 12:49:32 +02:00
Ali Mohammad Pur f899c19d41 LibGUI: Return Optional<Node const&> from node_for_path() 2022-04-04 12:48:31 +02:00
Ali Mohammad Pur 188207ed79 AK: Make Vector<T>::{first,last}_matching() return Optional<T&>
These functions are _very_ misleading, as `first()` and `last()` return
references, but `{first,last}_matching()` return copies of the values.
This commit makes it so that they now return Optional<T&>, eliminating
the copy and the confusion.
2022-04-04 12:48:31 +02:00
Ali Mohammad Pur 33e27c545e AK: Return Optional<T&> from HashMap<..., T>::get()
This avoids a useless copy of the value, as most of the users (except
one) actually just need a reference to the value.
2022-04-04 12:48:31 +02:00
Ali Mohammad Pur 1a74895680 AK: Return Optional<ConstPeekType> for HashMap::get() const
While the previous implementation always copied the object, returning a
non-const reference to a const object is not valid.
2022-04-04 12:48:31 +02:00
Ali Mohammad Pur 221ecf17d3 AK: Allow Optional<T&> to exist
This implements Optional<T&> as a T*, whose presence has been missing
since the early days of Optional.
As a lot of find_foo() APIs return an Optional<T> which imposes a
pointless copy on the underlying value, and can sometimes be very
misleading, with this change, those APIs can return Optional<T&>.
2022-04-04 12:48:31 +02:00
Andreas Kling 8f1ba8db4f Documentation: Clarify text about virtual/override/final 2022-04-04 12:44:44 +02:00
Andreas Kling d1f2d63840 Kernel: Remove unused Region::try_create_kernel_only() 2022-04-04 12:34:13 +02:00
Andreas Kling 63ddbaf68a Kernel: Tweak broken dbgln_if() in sys$fork() after RegionTree changes 2022-04-04 11:05:49 +02:00
Linus Groh cfc6d85427 Meta: Add Sahan Fernando to the contributors list :^) 2022-04-04 08:01:12 +01:00
Brian Gianforcaro 7eaf1cfdc2 ls: Use Core::System::pledge(..) instead of LibC API 2022-04-03 17:13:51 -07:00
Brian Gianforcaro af3751e4dd Utilities: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
Brian Gianforcaro 4d0317ae7a Shell: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
Brian Gianforcaro 09fe9b546f Services: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00
Brian Gianforcaro 9cfd520bb8 Applications: Use default execpromises parameter to pledge(..) 2022-04-03 17:13:51 -07:00