diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-01 17:05:52 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-01 17:06:35 +0200 |
commit | 6956d161c4c36a6655ddfd41fcc5abe39eae7a27 (patch) | |
tree | 319ee0458af74b393ed5b99dc1adceeb390af86c | |
parent | ba58b4617d0a7fe4e1bd4fb78f2c284b9b239131 (diff) | |
download | serenity-6956d161c4c36a6655ddfd41fcc5abe39eae7a27.zip |
PNGLoader: Annotate the decompression buffer mmap with a name.
-rw-r--r-- | SharedGraphics/PNGLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SharedGraphics/PNGLoader.cpp b/SharedGraphics/PNGLoader.cpp index 3238269d08..8e7094a8ba 100644 --- a/SharedGraphics/PNGLoader.cpp +++ b/SharedGraphics/PNGLoader.cpp @@ -405,7 +405,7 @@ static bool process_IHDR(const ByteBuffer& data, PNGLoadingContext& context) #endif context.decompression_buffer_size = (context.width * context.height * context.bytes_per_pixel + context.height); - context.decompression_buffer = (byte*)mmap(nullptr, context.decompression_buffer_size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); + context.decompression_buffer = (byte*)mmap_with_name(nullptr, context.decompression_buffer_size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0, "PNG decompression buffer"); return true; } |