mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 13:07:54 +00:00
[client] egl: allocate space for the initial texture dimensions
This fixes a buffer overrun when writing to the dimensions array
This commit is contained in:
parent
e707f9d933
commit
230ce81eb8
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ enum EGL_TexStatus egl_textureBind(EGL_Texture * this)
|
|||
free(this->bindData);
|
||||
|
||||
BindData * bd = (BindData *)calloc(1, sizeof(struct BindData) +
|
||||
sizeof(bd->dimensions[0]) * ll_count(this->render) * 2);
|
||||
sizeof(bd->dimensions[0]) * (ll_count(this->render)+1) * 2);
|
||||
bd->sampler = this->sampler;
|
||||
|
||||
this->bindData = bd;
|
||||
|
|
Loading…
Reference in a new issue