mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
Clipboard: Remove-unused bpp metadata
It's just more attack surface, and can be deduced from the format anyway.
This commit is contained in:
parent
4427da989f
commit
6c2ea4c4e9
Notes:
sideshowbarker
2024-07-19 00:59:58 +09:00
Author: https://github.com/BenWiederhake
Commit: 6c2ea4c4e9
Pull-request: https://github.com/SerenityOS/serenity/pull/4351
Reviewed-by: https://github.com/bugaevc
2 changed files with 24 additions and 2 deletions
|
@ -161,7 +161,6 @@ void Clipboard::set_bitmap(const Gfx::Bitmap& bitmap)
|
|||
metadata.set("height", String::number(bitmap.height()));
|
||||
metadata.set("format", String::number((int)bitmap.format()));
|
||||
metadata.set("pitch", String::number(bitmap.pitch()));
|
||||
metadata.set("bpp", String::number(bitmap.bpp()));
|
||||
set_data({ bitmap.scanline(0), bitmap.size_in_bytes() }, "image/x-serenityos", metadata);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue