sw_engine texmap: ++safety 62/288762/1
authorHermet Park <chuneon.park@samsung.com>
Wed, 22 Dec 2021 07:40:27 +0000 (16:40 +0900)
committerMichal Szczecinski <m.szczecinsk@partner.samsung.com>
Wed, 22 Feb 2023 11:29:13 +0000 (12:29 +0100)
Prevent range over just in case.

Change-Id: I27ed449d1292bc8e191d0a6fb751ab27ea3ee125

src/lib/sw_engine/tvgSwRasterTexmapInternal.h

index 0c6bf13..4e8d342 100644 (file)
             //Step UV horizontally
             u += _dudx;
             v += _dvdx;
+            //range over?
+            if ((uint32_t)v >= image->h) break;
         }
 next:
         //Step along both edges