File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -204,12 +204,15 @@ LLModel::EModelStatus load_face_from_dom_triangles(
204
204
205
205
if (idx_stride <= 0
206
206
|| (pos_source && pos_offset >= idx_stride)
207
+ || (pos_source && pos_offset < 0 )
207
208
|| (tc_source && tc_offset >= idx_stride)
208
- || (norm_source && norm_offset >= idx_stride))
209
+ || (tc_source && tc_offset < 0 )
210
+ || (norm_source && norm_offset >= idx_stride)
211
+ || (norm_source && norm_offset < 0 ))
209
212
{
210
213
// Looks like these offsets should fit inside idx_stride
211
214
// Might be good idea to also check idx.getCount()%idx_stride != 0
212
- LL_WARNS () << " Invalid pos_offset " << pos_offset << " , tc_offset " << tc_offset << " or norm_offset " << norm_offset << LL_ENDL;
215
+ LL_WARNS () << " Invalid idx_stride " << idx_stride << " , pos_offset " << pos_offset << " , tc_offset " << tc_offset << " or norm_offset " << norm_offset << LL_ENDL;
213
216
return LLModel::BAD_ELEMENT;
214
217
}
215
218
You can’t perform that action at this time.
0 commit comments