<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Null dereference due to not checking return value of util_format_description"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102552#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Null dereference due to not checking return value of util_format_description"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102552">bug 102552</a>
              from <span class="vcard"><a class="email" href="mailto:pauk.denis@gmail.com" title="Pauk Denis <pauk.denis@gmail.com>"> <span class="fn">Pauk Denis</span></a>
</span></b>
        <pre>I have found this behaiviour because of error in my code when some time
is_format_supported called with uninitialized value and had value >
PIPE_FORMAT_COUNT. 

With check like:
-----
for(int i=0; i<PIPE_FORMAT_COUNT; i++) {
   pscreen->is_format_supported(pscreen, i, PIPE_TEXTURE_2D, 0,
PIPE_BIND_SAMPLER_VIEW);
   }
-----

Such code has possible issues with: 73, 78, 79, 80, 81, 86 (holes in enum
pipe_format).</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>