FLTK logo

STR #2319

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #2319

Application:FLTK Library
Status:5 - New
Priority:3 - Moderate, e.g. unable to compile the software
Scope:2 - Specific to an operating system
Subsystem:Unassigned
Summary:fltk::setfont() crashes as fontopen() returns NULL
Version:2.0-current
Created By:jhuizer
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
 
#1 jhuizer
04:55 Feb 17, 2010
Running dillo-2.2, I browsed to a webpage which requested the "Courier" font. It ends up calling fltk::setfont(), which in turn calls fontopen(). Given it's settings, fontopen() returned NULL, and fltk::setfont() continues using the pointer without checking it - resulting in a crash.

The fontopen() function gets called with the following arguments:
name : "Courier"
attributes : 0
size : 10
core : false

I'm not sure whether there is some misconfiguration on my system.
Regardless, it shouldn't crash the program.
 
     

Return to Bugs & Features | Post Text | Post File ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.