Add validation checks for DisplayLuts

Carefully crafted DisplayLuts can make SF go boom. So add a bunch of
checks to make sure we catch them at the IPC boundary

Bug: 505573349
Flag: EXEMPT CVE_FIX
Test: Poc app, libgui_test
TAG=agy
CONV=20aa69b8-8d4d-4288-ace1-9e00ef1f1e8a
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:58625ba5aaa43889040e0fa42c59239f402cc994
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:df43ebed94e68b02d6470df79d4fa8128ced0d5c
Merged-In: If00ecae8a641cf85dc257553dabff590d26a0f0a
Change-Id: If00ecae8a641cf85dc257553dabff590d26a0f0a
6 files changed