diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-12 11:17:52 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-12 11:19:29 +0200 |
commit | 68a307be4e08df6218483ecf1cd92677241c8d18 (patch) | |
tree | e345932955ee551191ab0e60a850ee73fe592c55 /Userland/Applications/PixelPaint/main.cpp | |
parent | 92203c9821b53447a66ada699913e5e657551abf (diff) | |
download | serenity-68a307be4e08df6218483ecf1cd92677241c8d18.zip |
PixelPaint: Use ImageDecoder to load images out-of-process
This sandboxes the image decoding work done by PixelPaint to prevent
bugs in the decoding framework from compromising PixelPaint itself. :^)
Diffstat (limited to 'Userland/Applications/PixelPaint/main.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/main.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Userland/Applications/PixelPaint/main.cpp b/Userland/Applications/PixelPaint/main.cpp index 6617a2011d..1006697e8e 100644 --- a/Userland/Applications/PixelPaint/main.cpp +++ b/Userland/Applications/PixelPaint/main.cpp @@ -42,11 +42,6 @@ int main(int argc, char** argv) auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio thread recvfd sendfd rpath wpath cpath", nullptr) < 0) { - perror("pledge"); - return 1; - } - const char* image_file = nullptr; Core::ArgsParser args_parser; args_parser.add_positional_argument(image_file, "Image file to open", "path", Core::ArgsParser::Required::No); |