-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 1.2.0
-
Component/s: client-libs
-
1.2beta4
-
sparc
-
solaris_2.5.1
-
Not verified
In fontObject.cpp, after a malloc(), the following code is used to initialize the memory to 0:
fi = malloc(...);
memset(fi, 0, sizeof fi);
This is incorrect behavior. sizeof fi == 4 bytes. sizeof(*fi) == 12 bytes.
fi = malloc(...);
memset(fi, 0, sizeof fi);
This is incorrect behavior. sizeof fi == 4 bytes. sizeof(*fi) == 12 bytes.