Wed 24 May 2006 11:49:17 AM UTC, original submission:
Hello.
ft_mem_qrealloc() returns FT_Err_Invalid_Argument if item_size == 0. This is incorrect.
I would like to suggest the following changes to fix this problem:
Index: base/ftutil.c
===================================================================
RCS file: /cvsroot/freetype/freetype2/src/base/ftutil.c,v
retrieving revision 1.22
diff -r1.22 ftutil.c
123c123
< if ( cur_count < 0 || new_count < 0 || item_size <= 0 )
---
> if ( cur_count < 0 || new_count < 0 || item_size < 0 )
128c128
< else if ( new_count == 0 )
---
> else if ( new_count == 0 || item_size == 0 )
This problem was found while trying to call FT_Load_Glyph with glyph_index == 2. Use PFR font from Bug #16668.
Regards,
David
--
David Bustin
Software Engineer
Cabot Communications Ltd.
Verona House, Filwood Road,
Bristol BS16 3RY
UK
Email: david.bustin AT cabot.co.uk
http://www.cabot.co.uk
Interactive Digital TV Technology Solutions
- Complete the Digital Picture *
|