FLTK logo

STR #3498

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 | SVN ⇄ GIT ]

STR #3498

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:Fl_Check_Browser::add() can't take null string
Version:1.4.0
Created By:daniel710
Assigned To:matt
Fix Version:1.4.0
Fix Commit:4deeea317a788c2a88ae6b71805d2db2f8559779
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


Name/Time/Date Text  
 
#1 daniel710
09:36 Oct 22, 2018
The documentation for Fl_Check_Browser::add() says:

> The text is copied using the strdup() function. It may also be NULL to make a blank line.

But in the current implementation the string is passed to strdup() without any checks, so using NULL gives a segfault.
 
 
#2 matt
10:39 Feb 01, 2019
Fixed in Git repository.  
 
#3 matt
10:40 Feb 01, 2019
Fixed in Git repository.  
     

Return to Bugs & Features ]

 
 

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'.