diff options
author | petef <petef@FreeBSD.org> | 2003-05-12 03:21:11 +0000 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2003-05-12 03:21:11 +0000 |
commit | 9916eb86feb53e0818bcd975e07912d0a2a2b392 (patch) | |
tree | e72329abba21f4f95da01f38d2d07aba84538499 | |
parent | 0ea4176c98f5c207f3b72d838d76de8cf07a274c (diff) | |
download | FreeBSD-ports-9916eb86feb53e0818bcd975e07912d0a2a2b392.zip FreeBSD-ports-9916eb86feb53e0818bcd975e07912d0a2a2b392.tar.gz |
Fix an overflow in bubblemon.c; upstream maintainers contacted but no
response as of yet. Bump PORTREVISION.
PR: 51771
Submitted by: Jim Geovedi <jim@corebsd.or.id>
Approved by: maintainer timeout (just 1 week; it's a security fix)
-rw-r--r-- | sysutils/bubblemon/Makefile | 1 | ||||
-rw-r--r-- | sysutils/bubblemon/files/patch-src::bubblemon.c | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/bubblemon/Makefile b/sysutils/bubblemon/Makefile index 9b6e9bd..1d71e74 100644 --- a/sysutils/bubblemon/Makefile +++ b/sysutils/bubblemon/Makefile @@ -7,6 +7,7 @@ PORTNAME= bubblemon PORTVERSION= 1.2.6 +PORTREVISION= 1 CATEGORIES= sysutils gnome MASTER_SITES= http://www.student.nada.kth.se/~d92-jwa/code/bubblemon/ \ http://www.student.nada.kth.se/~d92-jwa/code/bubblemon/attic/ diff --git a/sysutils/bubblemon/files/patch-src::bubblemon.c b/sysutils/bubblemon/files/patch-src::bubblemon.c new file mode 100644 index 0000000..95ee05c --- /dev/null +++ b/sysutils/bubblemon/files/patch-src::bubblemon.c @@ -0,0 +1,22 @@ +$FreeBSD$ + +--- src/bubblemon.c.orig Mon Jul 22 10:19:32 2002 ++++ src/bubblemon.c Sun May 4 16:31:56 2003 +@@ -170,7 +170,7 @@ + + if (sysload.nCpus == 1) + { +- snprintf(loadstring, 45, ++ snprintf(loadstring, sizeof loadstring, + _("\nCPU load: %d%%"), + bubblemon_getCpuLoadPercentage(0)); + strcat(tooltipstring, loadstring); +@@ -181,7 +181,7 @@ + cpu_number < sysload.nCpus; + cpu_number++) + { +- snprintf(loadstring, 45, ++ snprintf(loadstring, sizeof loadstring, + _("\nCPU #%d load: %d%%"), + cpu_number, + bubblemon_getCpuLoadPercentage(cpu_number)); |