summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-01 17:05:52 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-01 17:06:35 +0200
commit6956d161c4c36a6655ddfd41fcc5abe39eae7a27 (patch)
tree319ee0458af74b393ed5b99dc1adceeb390af86c
parentba58b4617d0a7fe4e1bd4fb78f2c284b9b239131 (diff)
downloadserenity-6956d161c4c36a6655ddfd41fcc5abe39eae7a27.zip
PNGLoader: Annotate the decompression buffer mmap with a name.
-rw-r--r--SharedGraphics/PNGLoader.cpp2
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;
}