Skip to content
Snippets Groups Projects
Commit 471a10d3 authored by Isaac Manjarres's avatar Isaac Manjarres Committed by Treehugger Robot
Browse files

ANDROID: mm/memfd-ashmem-shim: Fix variable length array usage


The size of the buffer used to retrieve the memfd file name is
currently calculated at runtime, making the buffer a variable
length array. However, all of the terms used in the buffer size
calculation are known at compile time, so use compile time constants
for the calculation.

Bug: 399839316
Change-Id: Ie1edf9a28f735ebeffab07f64efc4de45f1f095a
Signed-off-by: default avatarIsaac J. Manjarres <isaacmanjarres@google.com>
parent 6b227a1f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment