diff options
| author | 2017-05-16 19:33:42 +0000 | |
|---|---|---|
| committer | 2017-05-16 19:33:42 +0000 | |
| commit | 600e6103444dfdae04487a4de9baac4bb4ce66a0 (patch) | |
| tree | 3f78b1c509547754b52526ca0731a6de5eff61ea /libs/ui/Fence.cpp | |
| parent | f571b414573494ca2e62e761d6dbce5b929999f0 (diff) | |
| parent | e3bc28ad88e56fce70fb974b1085b6127fbd3021 (diff) | |
Merge "ui: Fix bad size check in Fence::unflatten" into klp-dev am: 25556811f0 am: 71d3ef1340 am: 5c5ee81b0c am: 05df3a6f4d am: 81bab8081e am: 209ad9b6fe am: d4cbd296d6 am: 593a1a217a
am: e3bc28ad88
Change-Id: I4ad5bf17fdca2bd0adee7a06150d595ef9b6a0fa
Diffstat (limited to 'libs/ui/Fence.cpp')
| -rw-r--r-- | libs/ui/Fence.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ui/Fence.cpp b/libs/ui/Fence.cpp index bf24ffb7e0..1b2f34dfa8 100644 --- a/libs/ui/Fence.cpp +++ b/libs/ui/Fence.cpp @@ -157,7 +157,7 @@ status_t Fence::unflatten(void const*& buffer, size_t& size, int const*& fds, si return INVALID_OPERATION; } - if (size < 1) { + if (size < getFlattenedSize()) { return NO_MEMORY; } |