bugThe FreeType Project - Bugs: bug #55832, cf2_interpT2CharString() may write...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #55832: cf2_interpT2CharString() may write to unallocated memory

Submitter:  Sebastian Rasmussen <sebras>
Submitted:  Tue 05 Mar 2019 09:37:01 AM UTC
   
 
Severity:  3 - Normal Item Group:  Crash
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.10.0

Tue 05 Mar 2019 10:28:44 AM UTC, comment #1: 

Patch applied, thanks!

Werner LEMBERG <wl>
Group administrator
Tue 05 Mar 2019 09:37:01 AM UTC, original submission:  

In cf2_interpT2CharString() the call to cf2_arrstack_setCount() may fail due to the allocator running out of memory. But this error condition is not checked until after the returned memory is written to.

Moving the error check a bit earlier fixes the issue.

Attached you will find my proposed fix. Do not hesitate to contact me should it require further work to be acceptable.

Sebastian Rasmussen <sebras>

 

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

Attached Files
file #46429:  0001-psaux-Fix-use-of-uninitialized-memory.patch added by sebras (1KiB - text/x-patch - Proposed fix.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by sebras (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-05 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.10.0
    2019-03-05 sebras Attached File- Added 0001-psaux-Fix-use-of-uninitialized-memory.patch, #46429

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code