[Mesa-dev] [Bug 80889] New: draw_pipe_clip.c division by zero in interp

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 3 22:54:55 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=80889

          Priority: medium
            Bug ID: 80889
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: draw_pipe_clip.c division by zero in interp
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: zeccav at gmail.com
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: 10.2
         Component: Other
           Product: Mesa

In draw_pipe_clip.c:166
"const float oow = 1.0f / pos[3];"
I found that running a geant4 example pos[3] is zero.
Unfortunately I do not remember which example ran.
I believe an "assert(pos[3]);" or equivalent should be put immediately before
to avoid a division by zero.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140704/8daba754/attachment.html>


More information about the mesa-dev mailing list