Bug 179686 - xfce4-panel crashes when adding xfce4-panel-plugin
Summary: xfce4-panel crashes when adding xfce4-panel-plugin
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: xfce4-netload-plugin
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Christoph Wickert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-02 01:47 UTC by Tarltz
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-06 00:23:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tarltz 2006-02-02 01:47:26 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7

Description of problem:
When I use "Add new item" ->  "Netload" , xfce4-panel crashes  with message
"*** buffer overflow detected ***: xfce4-panel terminated"
There are "typo" in xfce4-netload-plugin-0.3.3/panel-plugin/wormulon/linux.c 
xfce4-panel does not crash if rebuild xfce4-netload plugin WITHOUT "-D_FORTIFY_SOURCE=2" , I think.

---xfce4-netload-plugin-0.3.3.old/panel-plugin/wormulon/linux.c 2005-08-01 07:56:38.000000000 +0900
+++ xfce4-netload-plugin-0.3.3/panel-plugin/wormulon/linux.c 2006-02-01 09:40:57.000000000 +0900
@@ -101,11 +101,11 @@

/* do not parse the first two lines as they only contain static garbage */
fseek(proc_net_dev, 0, SEEK_SET);
- fgets(buffer, BUFSIZ-1, proc_net_dev);
- fgets(buffer, BUFSIZ-1, proc_net_dev);
+ fgets(buffer, BUFSIZE-1, proc_net_dev);
+ fgets(buffer, BUFSIZE-1, proc_net_dev);

interfacefound = 0;
- while (fgets(buffer, BUFSIZ-1, proc_net_dev) != NULL)
+ while (fgets(buffer, BUFSIZE-1, proc_net_dev) != NULL)
{
/* find the device name and substitute ':' with '\0' */
ptr = buffer;


Version-Release number of selected component (if applicable):
xfce4-netload-plugin-0.3.3-3

How reproducible:
Always

Steps to Reproduce:
1. click right button on xfce4-panel
2. choose "Add new item"
3. choose "Netload" and click "Add" button on "Add new item" dialog
  

Additional info:

Comment 1 Christoph Wickert 2006-02-03 20:50:15 UTC
Thanks for the patch. This is definitely a typo. Still compiling with
"-D_FORTIFY_SOURCE=2".

The new release 0.3.3-4 works well here. Should be on the servers in a few days.
Could you please verify this package works on your computer?

Comment 2 Tarltz 2006-02-06 00:23:55 UTC
I updated xfce4-netload-plugin to 0.3.3-4 
, and It works fine. thank you.


Note You need to log in before you can comment on or make changes to this bug.