diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2015-10-18 23:12:50 -0700 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-10-19 11:51:58 -0400 |
commit | e09875701b980b8c4578fb310a922c9934c34eef (patch) | |
tree | 8f794ad8d4e141ed669bd1c0f5175d6379c847db | |
parent | 5dc415048e4091b18cd7d123ebeae8f95ed5a4f5 (diff) |
glx: Fix header length error checking in __glXDisp_RenderLarge
glxcmds.c:2206:46: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare,Semantic Issue]
if ((cmdlen = safe_pad(hdr->length)) < 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-rw-r--r-- | glx/glxcmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glx/glxcmds.c b/glx/glxcmds.c index cbd4ede39..0416dac09 100644 --- a/glx/glxcmds.c +++ b/glx/glxcmds.c @@ -2182,7 +2182,7 @@ __glXDisp_RenderLarge(__GLXclientState * cl, GLbyte * pc) __GLXrenderSizeData entry; int extra = 0; int left = (req->length << 2) - sz_xGLXRenderLargeReq; - size_t cmdlen; + int cmdlen; int err; /* |