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

Commit c82cd24a authored by Sam Hasinoff's avatar Sam Hasinoff
Browse files

Fix bad pixel out-of-bounds filter

Bug: 78243840
Test: build
Change-Id: I48c5e4bf7081c9d0dc79128e644f4f9f9debb84e
parent 4ea0a5a2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1729,7 +1729,7 @@ static sp<TiffWriter> DngCreator_setup(JNIEnv* env, jobject thiz, uint32_t image
            x -= static_cast<int32_t>(xmin);
            y -= static_cast<int32_t>(ymin);
            if (x < 0 || y < 0 || static_cast<uint32_t>(x) >= width ||
                    static_cast<uint32_t>(y) >= width) {
                    static_cast<uint32_t>(y) >= height) {
                continue;
            }
            v.push_back(x);