mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 14:03:40 +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
@ -294,7 +294,7 @@ enum EGL_TexStatus egl_textureBind(EGL_Texture * this)
|
|||||||
free(this->bindData);
|
free(this->bindData);
|
||||||
|
|
||||||
BindData * bd = (BindData *)calloc(1, sizeof(struct 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;
|
bd->sampler = this->sampler;
|
||||||
|
|
||||||
this->bindData = bd;
|
this->bindData = bd;
|
||||||
|
Loading…
Reference in New Issue
Block a user