<div dir="ltr">On 9 October 2013 13:33, Eric Anholt <span dir="ltr"><<a href="mailto:eric@anholt.net" target="_blank">eric@anholt.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It didn't affect test results, since we don't probe this data and it's<br>
only in manual mode, but it did cause buffer overflow.<br>
---<br>
 tests/texturing/depthstencil-render-miplevels.cpp | 3 +++<br>
 1 file changed, 3 insertions(+)<br>
<br>
diff --git a/tests/texturing/depthstencil-render-miplevels.cpp b/tests/texturing/depthstencil-render-miplevels.cpp<br>
index 813ca6f..f1ba658 100644<br>
--- a/tests/texturing/depthstencil-render-miplevels.cpp<br>
+++ b/tests/texturing/depthstencil-render-miplevels.cpp<br>
@@ -339,6 +339,9 @@ piglit_init(int argc, char **argv)<br>
                print_usage_and_exit(argv[0]);<br>
        }<br>
<br>
+       glPixelStorei(GL_PACK_ALIGNMENT, 1);<br>
+       glPixelStorei(GL_UNPACK_ALIGNMENT, 1);<br>
+<br>
        /* argv[1]: texture size */<br>
        {<br>
                char *endptr = NULL;<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.4.rc3<br></font></span></blockquote><br></div><div class="gmail_quote">Reviewed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br></div></div></div>