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

            Bug ID: 103323
           Summary: Possible unintended error message in file pixel.c line
                    286
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

While experimenting with a CodeSonar plugin we develop, we noticed a potential
bug in file "src/mesa/main/pixel.c" line 286 (function _mesa_PixelMapusv).

if (map >= GL_PIXEL_MAP_S_TO_S && map <= GL_PIXEL_MAP_I_TO_A) {
      /* test that mapsize is a power of two */
      if (!_mesa_is_pow_two(mapsize)) {
         _mesa_error( ctx, GL_INVALID_VALUE, "glPixelMapuiv(mapsize)" ); //HERE
         return;
      }
}

Shouldn't the error message be "glPixelMapu>s<v(mapsize)" insead of
"glPixelMapu>i<v(mapsize)"? In other words, shouldn't the 12th character be 's'
instead of 'i' in the error message?

Thanks,
Petru Mihancea

Note: The problem has been detected automatically via static analysis.

-- 
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