| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #1205
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 3 - Moderate, e.g. unable to compile the software |
Scope: | 2 - Specific to an operating system |
Subsystem: | X11 |
Summary: | Under Xft, the first call to fl_font() crashes if its arguments are both 0 |
Version: | 1.1.7 |
Created By: | jeremy_henty |
Assigned To: | matt |
Fix Version: | 1.1-current (SVN: v5035) |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | jeremy_henty 09:37 Mar 18, 2006 |
| When rendering with Xft, if the first call to fl_font() is fl_font(0,0) then the application segfaults. This happens because the code dereferences fl_fontsize, which is NULL when fl_font() is first called.
The attachment is a one-line patch to src/fl_font_xft.cxx that fixes the problem. | |
|
#2 | matt 06:55 Apr 27, 2006 |
| Fixed in Subversion repository.
fl_font(0, 0) as a first call in Xft would try to access a member in fl_fontsize, which was still set to NULL. This fix is untersted as I don't have a Unix machine here. Please verify this fix! | |
[ Return to Bugs & Features ]
|
| |