summaryrefslogtreecommitdiff
path: root/comms/viewfax
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>2004-01-13 15:07:29 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>2004-01-13 15:07:29 +0000
commit8a8afe9bbc29285cf48ec7cdb1a5e1fe64593564 (patch)
treee1a015fca2048dfdf6013a6d8ed947a71f336b8b /comms/viewfax
parentAdd phpeclipse_sql 1.0.1, PHP Eclipse SQL Utility plugin for Eclipse IDE (diff)
Fix a buffer overflow problem.
Submitted by: guy@device.dyndns.org
Notes
Notes: svn path=/head/; revision=98069
Diffstat (limited to 'comms/viewfax')
-rw-r--r--comms/viewfax/Makefile1
-rw-r--r--comms/viewfax/files/patch-aa2
2 files changed, 2 insertions, 1 deletions
diff --git a/comms/viewfax/Makefile b/comms/viewfax/Makefile
index e84d4067e343..016158a112a4 100644
--- a/comms/viewfax/Makefile
+++ b/comms/viewfax/Makefile
@@ -7,6 +7,7 @@
PORTNAME= viewfax
PORTVERSION= 2.3
+PORTREVISION= 1
CATEGORIES= comms
MASTER_SITES= ftp://ftp.leo.org/pub/comp/os/unix/networking/mgetty/
diff --git a/comms/viewfax/files/patch-aa b/comms/viewfax/files/patch-aa
index 844595ffa52d..b8782ecf2042 100644
--- a/comms/viewfax/files/patch-aa
+++ b/comms/viewfax/files/patch-aa
@@ -5,7 +5,7 @@
n = *r++;
tot += n;
+ /* Watch out for buffer overruns, e.g. when n == 65535. */
-+ if (tot > pn->width)
++ if (tot >= pn->width)
+ break;
if (pix)
acc |= (~(t32bits)0 >> nacc);