Fix sanitizer in SurfaceFlinger BufferLayer.
The value -1U causes an runtime error on integer sanitized builds. This
changes the value to UINT32_MAX.
Bug: 30969751
Test: Compiles and device boots without runtime error.
Change-Id: I0597386d9b485f0a0343e36b8afd3989bc77aadb
diff --git a/services/surfaceflinger/BufferLayer.cpp b/services/surfaceflinger/BufferLayer.cpp
index 45093be..fc0949d 100644
--- a/services/surfaceflinger/BufferLayer.cpp
+++ b/services/surfaceflinger/BufferLayer.cpp
@@ -54,7 +54,7 @@
uint32_t w, uint32_t h, uint32_t flags)
: Layer(flinger, client, name, w, h, flags),
mSurfaceFlingerConsumer(nullptr),
- mTextureName(-1U),
+ mTextureName(UINT32_MAX),
mFormat(PIXEL_FORMAT_NONE),
mCurrentScalingMode(NATIVE_WINDOW_SCALING_MODE_FREEZE),
mBufferLatched(false),