diff options
author | Chad Versace <[email protected]> | 2012-07-20 15:41:27 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2012-07-20 16:01:57 -0700 |
commit | 735070c45b403a9631415b09e9fd519f601f0229 (patch) | |
tree | 3fe0dde0e14b103ebd77d9a5ab8a3cdc89348fd8 /src/mesa/libdricore | |
parent | 1a8f6ac5a46dfbb8287ee2bacdd11c3a1a3a65c7 (diff) |
i830: Fix stack corruption
Found by compiler warning:
i830_texstate.c:131:28: warning: argument to 'sizeof' in 'memset' call
is the same expression as the destination; did you mean to
dereference it? [-Wsizeof-pointer-memaccess]
memset(state, 0, sizeof(state));
~~~~~ ^~~~~
On 64-bit systems, memset here would write an extra 4 bytes.
Note: This is a candidate for the stable branches.
Reviewed-by: Brian Paul <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/libdricore')
0 files changed, 0 insertions, 0 deletions