Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb13f9e6 authored by Ivan Lozano's avatar Ivan Lozano
Browse files

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
parent 0c911c0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ BufferLayer::BufferLayer(SurfaceFlinger* flinger, const sp<Client>& client, cons
                         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),