mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
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:
parent
92203c9821
commit
68a307be4e
3 changed files with 35 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue