Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#18962 closed defect (fixed)

Double free in ft2font

Reported by: vbraun Owned by:
Priority: major Milestone: sage-6.9
Component: packages: standard Keywords:
Cc: fbissey Merged in:
Authors: Volker Braun Reviewers: François Bissey
Report Upstream: N/A Work issues:
Branch: 1be3c2b (Commits, GitHub, GitLab) Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by fbissey)

As reported at https://groups.google.com/d/msg/sage-support/K-neaKVSGiE/YMvQqVNQCQAJ

sage: import matplotlib 
sage: matplotlib.rc('text', usetex=True) 
sage: plot(sin).save('/tmp/test.svg') # works 
sage: plot(sin).save('/tmp/test.svg') # segfault 

This is a bug in freetype 2.5.2 (http://savannah.nongnu.org/bugs/?40997)

Update to freetype-2.6 fixes it.

Change History (9)

comment:1 Changed 6 years ago by vbraun

  • Authors set to Volker Braun
  • Cc fbissey added
  • Component changed from PLEASE CHANGE to packages: standard
  • Description modified (diff)
  • Type changed from PLEASE CHANGE to defect

comment:2 Changed 6 years ago by vbraun

  • Branch set to u/vbraun/double_free_in_ft2font

comment:3 Changed 6 years ago by vbraun

  • Commit set to 1be3c2b15b3aa1ba78396d549bfc4ba7161cd097
  • Status changed from new to needs_review

New commits:

1be3c2bUpdate to freetype 2.6

comment:4 Changed 6 years ago by fbissey

  • Description modified (diff)
  • Status changed from needs_review to positive_review

Hum, I am only at 2.5.5 in sage-on-gentoo and that's not vulnerable. Hum, spkg-install doesn't do anything special that will need updating for that version so it should be all good.

comment:5 Changed 6 years ago by vbraun

Yes, 2.5.5 is also good.

comment:6 Changed 6 years ago by vbraun

  • Reviewers set to François Bissey

comment:7 Changed 6 years ago by aginiewicz

I can confirm that it fixes original issue (made fresh build, all tests passed and saving to svg no longer segfaults)

comment:8 Changed 6 years ago by vbraun

  • Branch changed from u/vbraun/double_free_in_ft2font to 1be3c2b15b3aa1ba78396d549bfc4ba7161cd097
  • Resolution set to fixed
  • Status changed from positive_review to closed

comment:9 Changed 6 years ago by fbissey

  • Commit 1be3c2b15b3aa1ba78396d549bfc4ba7161cd097 deleted

follow up in #19089

Note: See TracTickets for help on using tickets.