Andreas Kling
f8d798b667
Kernel: Move allocate_unbacked_region_anywhere() to MemoryManager
...
This didn't need to be in RegionTree, and since it's specific to kernel
VM anyway, let's move it to MemoryManager.
2022-04-05 13:45:10 +02:00
Andreas Kling
e0da8da657
Kernel: Move create_identity_mapped_region() to MemoryManager
...
This had no business being in RegionTree, since RegionTree doesn't track
identity-mapped regions anyway. (We allow *any* address to be identity
mapped, not just the ones that are part of the RegionTree's range.)
2022-04-05 13:45:10 +02:00
brapru
3dbb4bc3a6
Utilities: Update arp to use newer APIs
...
Updates the arp command to use Core::System for the socket and
ioctl calls.
Updates command line arguments to StringView.
2022-04-05 12:43:18 +02:00
brapru
26b8155530
Utilities: Pledge inet in arp command
...
Previously the arp command would crash when trying to set/delete from
the table.
2022-04-05 12:43:18 +02:00
Andreas Kling
cfb61cbd54
Kernel: Add RegionTree::find_region_containing(address or range)
...
Let's encapsulate looking up regions so clients don't have to dig into
RegionTree internals.
2022-04-05 12:23:47 +02:00
Andreas Kling
da7ea2556e
Kernel: Add RegionTree::remove(Region&)
...
This allows clients to remove a region from the tree without reaching
into the RegionTree internals.
2022-04-05 11:57:53 +02:00
Ali Mohammad Pur
4b5a9bab34
LibJS: Actually generate a lexical env for SwitchStatement in BC
...
We had code for this in ScopeNode, but that function was never called
for a SwitchStatement.
This fixes a bunch of scoping tests for switch.
2022-04-05 11:46:48 +02:00
Ali Mohammad Pur
0e1943937c
LibJS: Use InitializeOrSet to initialize function declarations in BC
...
A function may be redefined, in which case the existing binding is
expected to be reused.
2022-04-05 11:46:48 +02:00
Ali Mohammad Pur
5407fe8fcf
LibJS: Make Handle<Value>::is_null() also consider the contained value
...
Previously this would've said `make_handle(Value(1234))` is null, as it
did not contain a cell (but rather a plain Value), which made throwing
primitives spin forever in BC mode.
2022-04-05 11:46:48 +02:00
Ali Mohammad Pur
431776ebb7
js: Print the accumulator instead of the returned value in BC mode
...
The REPL is supposed to show the last value (and not the _returned_
value), so use the accumulator register as the 'value'.
2022-04-05 11:46:48 +02:00
Andreas Kling
f0f97e1db0
Kernel: Take the RegionTree spinlock when inspecting tree from outside
...
This patch adds RegionTree::get_lock() which exposes the internal lock
inside RegionTree. We can then lock it from the outside when doing
lookups or traversal.
This solution is not very beautiful, we should find a way to protect
this data with SpinlockProtected or something similar. This is a stopgap
patch to try and fix the currently flaky CI.
2022-04-05 01:15:22 +02:00
Andreas Kling
e3e1d79a7d
Kernel: Remove unused ShouldDeallocateVirtualRange parameters
...
Since there is no separate virtual range allocator anymore, this is
no longer used for anything.
2022-04-05 01:15:22 +02:00
Timothy Flynn
b36c3a68d8
js: Convert non-UTF-8 encoded files to UTF-8 before parsing
2022-04-05 00:14:29 +01:00
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