[Mesa-dev] [Bug 104183] mesa-17.3.0/src/broadcom/qpu/qpu_pack.c:171]: (error) Invalid memcmp() argument

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Dec 9 20:27:55 UTC 2017


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

            Bug ID: 104183
           Summary: mesa-17.3.0/src/broadcom/qpu/qpu_pack.c:171]: (error)
                    Invalid memcmp() argument
           Product: Mesa
           Version: 17.3
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: dcb314 at hotmail.com
        QA Contact: mesa-dev at lists.freedesktop.org

mesa-17.3.0/src/broadcom/qpu/qpu_pack.c:171]: (error) Invalid memcmp() argument
nr 3. A non-boolean value is required.

Source code is

        return (packed_sig == 0 ||
                memcmp(sig, &v33_sig_map[0], sizeof(*sig) != 0));

Maybe better code

        return (packed_sig == 0 ||
                memcmp(sig, &v33_sig_map[0], sizeof(*sig)) != 0);

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171209/e39e6ce9/attachment.html>


More information about the mesa-dev mailing list