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. :^)
This commit is contained in:
Andreas Kling 2021-06-12 11:17:52 +02:00
commit 68a307be4e
Notes: sideshowbarker 2024-07-18 12:22:43 +09:00
3 changed files with 35 additions and 14 deletions

View file

@ -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);