[Mesa-dev] [Bug 91631] Clang static analysis of libtess shows undefined values and use of memory after free
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Aug 13 21:09:45 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=91631
Bug ID: 91631
Summary: Clang static analysis of libtess shows undefined
values and use of memory after free
Product: Mesa
Version: git
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: medium
Component: GLU
Assignee: mesa-dev at lists.freedesktop.org
Reporter: net147 at gmail.com
QA Contact: mesa-dev at lists.freedesktop.org
Using static analyzer included in clang 3.6.2:
$ ./autogen.sh
$ ./configure
$ scan-build make
CC src/libtess/dict.lo
CC src/libtess/geom.lo
CC src/libtess/memalloc.lo
CC src/libtess/mesh.lo
CC src/libtess/normal.lo
src/libtess/normal.c:112:6: warning: Assigned value is garbage or undefined
v1 = minVert[i];
^ ~~~~~~~~~~
src/libtess/normal.c:113:6: warning: Assigned value is garbage or undefined
v2 = maxVert[i];
^ ~~~~~~~~~~
2 warnings generated.
CC src/libtess/priorityq.lo
CC src/libtess/render.lo
CC src/libtess/sweep.lo
src/libtess/sweep.c:779:11: warning: Use of memory after it is freed
if( ! regUp->dirty ) {
^~~~~~~~~~~~
src/libtess/sweep.c:803:10: warning: Use of memory after it is freed
eLo = regLo->eUp;
^~~~~~~~~~
src/libtess/sweep.c:808:10: warning: Use of memory after it is freed
eUp = regUp->eUp;
^~~~~~~~~~
3 warnings generated.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150814/bb8b2a4b/attachment.html>
More information about the mesa-dev
mailing list