diff options
author | Dave Barnish <dave.barnish@arm.com> | 2014-06-11 13:39:57 +0100 |
---|---|---|
committer | Dave Barnish <dave.barnish@arm.com> | 2014-06-11 13:48:35 +0100 |
commit | 4469268c4dc82dc8a20b75f1b4dbae5c75277c50 (patch) | |
tree | 6c768977bece975f5840ebb88ebbdc361155b0d1 | |
parent | 1d13da045ced12a123db184fff677b0de41d80e6 (diff) |
Fixed a memory corruption issue.
Commit 36c7ca0 "Fix malloc/calloc/free usage" introduced
a wrongly sized allocation which could cause memory
corruption.
Change-Id: I5693e7cd952fbb811a09caf251dbeb8bd23b490a
-rw-r--r-- | src/drmmode_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 69f0936..f725fd5 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -1028,7 +1028,7 @@ drmmode_output_create_resources(xf86OutputPtr output) int i, j, err; drmmode_output->props = calloc(connector->count_props, - sizeof *connector->props); + sizeof(*drmmode_output->props)); if (!drmmode_output->props) return; |