diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-15 13:32:26 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-15 13:32:26 +0200 |
commit | 6d969c0dec307af61ca5413dbe7e47b25c4157e9 (patch) | |
tree | a94b9bd6334a178ccd257136c3fe2310bfc7d946 /src | |
parent | 237ff9d2d183d3b8b79376a95511da91ce8ed1d9 (diff) | |
download | xine-lib-6d969c0dec307af61ca5413dbe7e47b25c4157e9.tar.gz xine-lib-6d969c0dec307af61ca5413dbe7e47b25c4157e9.tar.bz2 |
Use xine_xcalloc() to make sure nothing will overflow.
Diffstat (limited to 'src')
-rw-r--r-- | src/video_out/video_out_xcbshm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_out/video_out_xcbshm.c b/src/video_out/video_out_xcbshm.c index a7c3b3028..1491832ea 100644 --- a/src/video_out/video_out_xcbshm.c +++ b/src/video_out/video_out_xcbshm.c @@ -965,7 +965,7 @@ static int ImlibPaletteLUTGet(xshm_driver_t *this) { char *retval = xcb_get_property_value(prop_reply); j = 1 + retval[0]*4; - this->yuv2rgb_cmap = malloc(sizeof(uint8_t) * 32 * 32 * 32); + this->yuv2rgb_cmap = xine_xcalloc(sizeof(uint8_t), 32 * 32 * 32); for (i = 0; i < 32 * 32 * 32 && j < num_ret; i++) this->yuv2rgb_cmap[i] = retval[1+4*retval[j++]+3]; |