The FreeType Project - Bugs: bug #58416, Woff2 TTCs memory leak
You are not allowed to post comments on this tracker with your current authentication level.
bug #58416: Woff2 TTCs memory leak
Submitter: | None | ||
Submitted: | Wed 20 May 2020 07:16:38 PM UTC | ||
Severity: | 3 - Normal | Item Group: | Crash |
Status: | Need Info | Privacy: | Public |
Assigned to: | wl | Open/Closed: | Open |
Planned Release: | None |
Fri 05 Jun 2020 04:41:03 AM UTC, comment #5: |
Werner LEMBERG <wl> |
Thu 04 Jun 2020 02:50:54 AM UTC, comment #4: Here's the stack trace from ASAN:
|
Avery Crits-Christoph <averycc> |
Thu 04 Jun 2020 02:34:08 AM UTC, comment #3: Hey, thanks for the response and sorry for the delay in responding. You're right, that demo isn't triggering the error like I thought it would. Do you have any demos that use FT_Open_Face? The error only occurs when FT_Open_Face is used to provide an external stream.
|
Avery Crits-Christoph <averycc> |
Tue 26 May 2020 05:58:59 AM UTC, comment #2: Thanks for the patch; will have a look soon. However, I tried to reproduce the issue and wasn't able to. Neither valgrind nor ASAN show a problem – no error was triggered at all.
|
Werner LEMBERG <wl> |
Wed 20 May 2020 07:23:20 PM UTC, comment #1: Hi, sorry I forgot to log in. I submitted this (averycc).
|
Avery Crits-Christoph <averycc> |
Wed 20 May 2020 07:16:38 PM UTC, original submission:
Hey Freetype team,
|
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2020-06-15 | wl | Status | None | Need Info | |
2020-05-26 | wl | Assigned to | dxdy | wl | |
2020-05-22 | podtelez | Assigned to | None | dxdy | |
Carbon-Copy | - | Added dxdy |
Powered by Savane 3.13-02a9.
Corresponding source code
I think the problem is not with `FT_Open_Face` but that the WOFF2 font itself if generated as you describe doesn't trigger an error at all – at least using the program and font versions mentioned earlier. A 'Bad Format' font error should be reproducible regardless how the data is stored.
The stream object pointed to by the stack trace is internal to FreeType; it is used to communicate with the Brotli library. In other words, a FreeType demo program like `ftview` should expose the problem too, AFAICS, but it doesn't.
Can you make the exact file you are using for testing temporarily available for download?