forked from minhngoc25a/freetype2
* src/base/ftutil.c (ft_mem_qalloc) [FT_STRICT_ALIASING]: Do not
return error if size == 0.
This commit is contained in:
parent
a87b08a7af
commit
9f5d3de3f0
|
@ -1,3 +1,8 @@
|
|||
2006-02-28 Chia-I Wu <b90201047@ntu.edu.tw>
|
||||
|
||||
* src/base/ftutil.c (ft_mem_qalloc) [FT_STRICT_ALIASING]: Do not
|
||||
return error when size == 0.
|
||||
|
||||
2006-02-28 Chia-I Wu <b90201047@ntu.edu.tw>
|
||||
|
||||
* src/base/ftobjs.c (FT_Done_Library): Modules are removed in the
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
if ( block == NULL )
|
||||
error = FT_Err_Out_Of_Memory;
|
||||
}
|
||||
else
|
||||
else if ( size < 0 )
|
||||
{
|
||||
/* may help catch/prevent security issues */
|
||||
error = FT_Err_Invalid_Argument;
|
||||
|
|
Loading…
Reference in New Issue