Bug 679618 - Uninitialized memory in gfx/2d/SourceSurfaceCG.cpp; r=jmuizelaar

This commit is contained in:
Atul Aggarwal 2011-08-31 13:16:12 +01:00
parent 22ac610317
commit 3360aa4b4c

View File

@ -110,7 +110,7 @@ SourceSurfaceCG::InitFromData(unsigned char *aData,
};
void *data = malloc(aStride * aSize.height);
memcpy(aData, data, aStride * aSize.height);
memcpy(data, aData, aStride * aSize.height);
mFormat = aFormat;