Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
d35a8fcb
Commit
d35a8fcb
authored
6 years ago
by
ruslantproductengine
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-8670 Crash in: LLFace::getGeometryVolume()
Guarded.
parent
0bd55476
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llface.cpp
+6
-0
6 additions, 0 deletions
indra/newview/llface.cpp
with
6 additions
and
0 deletions
indra/newview/llface.cpp
+
6
−
0
View file @
d35a8fcb
...
@@ -1217,6 +1217,12 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
...
@@ -1217,6 +1217,12 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
{
{
LL_RECORD_BLOCK_TIME
(
FTM_FACE_GET_GEOM
);
LL_RECORD_BLOCK_TIME
(
FTM_FACE_GET_GEOM
);
llassert
(
verify
());
llassert
(
verify
());
if
(
volume
.
getNumVolumeFaces
()
<=
f
)
{
LL_WARNS
()
<<
"Attempt get volume face out of range! Total Faces: "
<<
volume
.
getNumVolumeFaces
()
<<
" Attempt get access to: "
<<
f
<<
LL_ENDL
;
return
FALSE
;
}
const
LLVolumeFace
&
vf
=
volume
.
getVolumeFace
(
f
);
const
LLVolumeFace
&
vf
=
volume
.
getVolumeFace
(
f
);
S32
num_vertices
=
(
S32
)
vf
.
mNumVertices
;
S32
num_vertices
=
(
S32
)
vf
.
mNumVertices
;
S32
num_indices
=
(
S32
)
vf
.
mNumIndices
;
S32
num_indices
=
(
S32
)
vf
.
mNumIndices
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment