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

            Bug ID: 110847
           Summary: occlusion-query.c:190:45: error: format specifies type
                    'unsigned long' but the argument has type 'uint64_t'
                    (aka 'unsigned long long') [-Werror,-Wformat]
           Product: Mesa
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: All
            Status: NEW
          Keywords: bisected, regression
          Severity: normal
          Priority: medium
         Component: Other
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

../src/gallium/tests/graw/occlusion-query.c:190:45: error: format specifies
type 'unsigned long' but the argument has type 'uint64_t' (aka 'unsigned long
long') [-Werror,-Wformat]
   printf("result1 = %lu  result2 = %lu\n", res1.u64, res2.u64);
                     ~~~                    ^~~~~~~~
                     %llu


commit c9c1e26106478258d8a91fe8fc5c69d8c3fa5206
Author: Mark Janes <[email protected]>
Date:   Mon Jun 3 16:59:45 2019 -0700

    mesa: prevent common string formatting security issues

    Adds a compile-time error for obvious security issues like:

      printf(string_var);

    The proposed flag is more tolerant than -Wformat-nonliteral.
    Specifically, it tolerates common mesa formatting like:

      static const char *shader_template = "really long string %d";
      printf(shader_template, uniform_number);

    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110833
    Reviewed-by: Eric Anholt <[email protected]>
    Reviewed-by: Eric Engestrom <[email protected]>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to