bugThe FreeType Project - Bugs: bug #16669, ft_mem_qrealloc() with item_size...

 
 

bug #16669: ft_mem_qrealloc() with item_size == 0

Submitted by:  None
Submitted on:  Wed 24 May 2006 11:49:17 AM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: FixedPrivacy: Public
Assigned to: David Turner <freetype>Open/Closed: Closed
Planned Release: 2.3.0

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 04 Jun 2006 03:08:19 PM UTC, comment #2:

I really can't reproduce this problem. Moreover an 'item_size' of 0 seems wrong.

I'll make the change anyway...

David Turner <freetype>
Project AdministratorIn charge of this item.
Fri 26 May 2006 07:20:53 AM UTC, comment #1:

Thanks for the report.

David, please verify and take appropriate action
if necessary.

Werner LEMBERG <wl>
Project Administrator
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 *
Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 04 Jun 2006 03:08:19 PM UTCfreetypeStatusNone=>Fixed
  Open/ClosedOpen=>Closed
  Planned ReleaseNone=>2.3.0
Fri 26 May 2006 07:20:53 AM UTCwlAssigned toNone=>freetype

Back to the top


Powered by Savane 3.1-cleanup1