projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff9f11d
)
Revert "(UsdLoader) Fix coverity issue - uint32 can't have less than 0 value"
author
ANZ1217
<chihun.jeong@samsung.com>
Thu, 5 Jun 2025 05:29:52 +0000
(14:29 +0900)
committer
ANZ1217
<chihun.jeong@samsung.com>
Thu, 5 Jun 2025 05:29:52 +0000
(14:29 +0900)
This reverts commit
ff9f11d29df2acbb48bef7b462670207268d872d
.
dali-usd-loader/internal/usd-loader-impl.cpp
patch
|
blob
|
history
diff --git
a/dali-usd-loader/internal/usd-loader-impl.cpp
b/dali-usd-loader/internal/usd-loader-impl.cpp
index b4d3712b0e8516d2c03e7325875bc4ecfe2d4577..0f60138a35e1a26cdfb684bdcd74fda602f58d10 100644
(file)
--- a/
dali-usd-loader/internal/usd-loader-impl.cpp
+++ b/
dali-usd-loader/internal/usd-loader-impl.cpp
@@
-696,7
+696,7
@@
void UsdLoaderImpl::Impl::ProcessMeshTexcoords(MeshDefinition& meshDefinition, s
// Handle vertex-based UVs
for(auto x : subIndexArray)
{
- if(DALI_UNLIKELY(static_cast<size_t>(x) >= rawUVs.size()))
+ if(DALI_UNLIKELY(
x < 0 ||
static_cast<size_t>(x) >= rawUVs.size()))
{
// This should never happen. The USD spec and the “indexed” primvar APIs guarantee that
// you will never have an index that lies outside the authored-values array.