We are currently experiencing downtime impacting viewing & cloning the Mesa repo, and some GitLab pages returning 503. Please see #freedesktop on IRC for more updates.

Commit 4469268c authored by Dave Barnish's avatar Dave Barnish

Fixed a memory corruption issue.

Commit 36c7ca02 "Fix malloc/calloc/free usage" introduced
a wrongly sized allocation which could cause memory
corruption.

Change-Id: I5693e7cd952fbb811a09caf251dbeb8bd23b490a
parent 1d13da04
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment