<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Query INFO_LOG_LENGTH for empty info log should return 0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97321#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Query INFO_LOG_LENGTH for empty info log should return 0"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97321">bug 97321</a>
              from <span class="vcard"><a class="email" href="mailto:idr@freedesktop.org" title="Ian Romanick <idr@freedesktop.org>"> <span class="fn">Ian Romanick</span></a>
</span></b>
        <pre>(In reply to Qiankun Miao from <a href="show_bug.cgi?id=97321#c7">comment #7</a>)
<span class="quote">> (In reply to Ian Romanick from <a href="show_bug.cgi?id=97321#c6">comment #6</a>)
> > The spec also says, "If pname is INFO_LOG_LENGTH , the length of the info
> > log, including a null terminator, is returned."  If this query returns 0,
> > then glGetProgramInfoLog CANNOT write anything to the buffer... and it
> > currently does.

> I think returned value of GetProgramiv() can be 0. It doesn't affect the
> real length of the info log buffer. Driver can still return a null
> terminator string.</span >

That is absolutely false.  The whole point of the
glGetProgramiv(GL_INFO_LOG_LENGTH) query is so that the application can
allocate a buffer to store the data that will be returned by
glGetProgramInfoLog.  Having those mismatch, under any circumstances, is wrong
to the point that it could create a buffer overrun security problem.</pre>
        </div>
      </p>


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

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