Bug 121316 - [patch]sysutils/xfce4-systemload-plugin integer multiplication overflow
Summary: [patch]sysutils/xfce4-systemload-plugin integer multiplication overflow
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: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-03 13:30 UTC by MQ
Modified: 2008-03-30 00:00 UTC (History)
0 users

See Also:


Attachments
file.diff (738 bytes, patch)
2008-03-03 13:30 UTC, MQ
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MQ 2008-03-03 13:30:00 UTC
I've found an integer multiplication overflow in panel-plugin/memswap.c. When large memory is used, this bug will be triggered, causing the output of this plugin useless.

Fix: See my patch.

Patch attached with submission follows:
How-To-Repeat: Follow these steps when you have more than 3G memory (more than 2G must be enough to exploit this bug, but I have only tried installing 3G memory.)
1. cd /usr/ports/sysutils/xfce4-systemload-plugin && make install
2. Configure xfce4 to enable this plugin.
3. You will see that the output of the memory consumption is absolutely incorrect.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-03-03 13:30:08 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2008-03-07 13:31:47 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2008-03-29 23:56:32 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2008-03-29 23:56:32 UTC
miwi        2008-03-29 23:56:27 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/xfce4-systemload-plugin Makefile 
  Added files:
    sysutils/xfce4-systemload-plugin/files 
                                           patch-panel-plugin-memswap.c 
  Log:
  - Fix memory bug when you have more than 3 GB
  
  PR:             121316
  Submitted by:   MQ <antinvidia@gmail.com>
  Approved by:    maintainer timeout
  
  Revision  Changes    Path
  1.25      +1 -2      ports/sysutils/xfce4-systemload-plugin/Makefile
  1.1       +24 -0     ports/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin-memswap.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"