This website requires JavaScript.
Explore
Help
Sign In
LadybirdBrowser
/
ladybird
Watch
1
Star
1
Fork
0
You've already forked ladybird
mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced
2024-09-21 10:19:03 +03:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
418bc484e4
ladybird
/
Userland
/
Services
/
ImageDecoder
/
ImageDecoderClient.ipc
5 lines
54 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Revert "IPCCompiler: Use string hashes for IPC endpoint magic" This reverts commit 59218007a3034c7770b7fa5277ce1eae85bb1c07.
2021-04-25 12:24:12 +03:00
endpoint ImageDecoderClient = 7002
ImageDecoder: Add a new service for out-of-process image decoding :^) The new ImageDecoder service (available for members of "image" via /tmp/portal/image) allows you to decode images in a separate process. This will allow programs to confidently load untrusted images, since the bulk of the security concerns are sandboxed to a separate process. The only API right now is a synchronous IPC DecodeImage() call that takes a shbuf with encoded image data and returns a shared buffer and metadata for the decoded image. It also comes with a very simple library for interfacing with the ImageDecoder service: LibImageDecoderClient. The name is a bit of a mouthful but I guess we can rename it later if we think of something nicer to call it. There's obviously a bit of overhead to spawning a separate process for every image decode, so this is mostly only appropriate for untrusted images (e.g stuff downloaded from the web) and not necessary for trusted local images (e.g stuff in /res)
2020-06-22 22:35:22 +03:00
{
Dummy() =|
}
Reference in New Issue
Copy Permalink