Bug 36426

Summary: [PATCH] Fix theme-switcher malloc abort on -CURRENT
Product: Ports & Packages Reporter: Joe Marcus Clarke <marcus>
Component: Individual Port(s)Assignee: freebsd-gnome (Nobody) <gnome>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-capplets::theme-switcher::lister.c none

Description Joe Marcus Clarke 2002-03-28 19:10:01 UTC
On -CURRENT, the theme-switcher-capplet will core dump with an abort trap
due to a bad free() of a static allocated array.  This patch fixes this
problem by using malloc() to allocate lineptr instead of using static memory.
Another way to fix this is to simply remove the call to free(lineptr).

How-To-Repeat: Try to select a new theme on -CURRENT.
Comment 1 Pete Fritchman freebsd_committer freebsd_triage 2002-03-28 22:56:18 UTC
Responsible Changed
From-To: freebsd-ports->gnome

Over to maintainers
Comment 2 Maxim Sobolev freebsd_committer freebsd_triage 2002-03-29 12:55:38 UTC
State Changed
From-To: open->closed

Patch committed, thank you very much! Please also submit it to GNOME bugzilla.