Bug 36426 - [PATCH] Fix theme-switcher malloc abort on -CURRENT
Summary: [PATCH] Fix theme-switcher malloc abort on -CURRENT
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-28 19:10 UTC by Joe Marcus Clarke
Modified: 2002-03-29 12:56 UTC (History)
0 users

See Also:


Attachments
patch-capplets::theme-switcher::lister.c (338 bytes, text/plain)
2002-03-28 19:10 UTC, Joe Marcus Clarke
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.