mesa/src/egl
Carl Worth ecc89e4e42 egl: Restrict multiplication in calloc arguments to use compile-time constants
As explained in the previous commit, we want to avoid the possibility of
integer-multiplication overflow while allocating buffers.

In these two cases, the final allocation size is the product of three values:
one variable and two that are fixed constants at compile time.

In this commit, we move the explicit multiplication to involve only the
compile-time constants, preventing any overflow from that multiplication, (and
allowing calloc to catch any potential overflow from the remainining implicit
multiplication).

Reviewed-by: Matt Turner <mattst88@gmail.com>
2014-09-03 18:37:02 -07:00
..
docs egl: Mark EGL_MESA_screen_surface as obsolete. 2010-08-31 15:25:22 +08:00
drivers/dri2 egl: Restrict multiplication in calloc arguments to use compile-time constants 2014-09-03 18:37:02 -07:00
main android: loader: prefix static libraries with libmesa_* 2014-08-13 00:46:57 +01:00
wayland wayland: Move version 2 request to end of interface specification 2014-05-12 15:55:21 -07:00