aboutsummaryrefslogtreecommitdiff
path: root/comms/viewfax
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>2004-01-20 00:36:37 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>2004-01-20 00:36:37 +0000
commite35846b662f7fce5daa96e14307c10be49767194 (patch)
treec4fc4b45c2fe6a56bed447ebf71c2e9703eab1a7 /comms/viewfax
parent5d60900891d6f706f9783ebf973d46fe16890ab0 (diff)
downloadports-e35846b662f7fce5daa96e14307c10be49767194.tar.gz
ports-e35846b662f7fce5daa96e14307c10be49767194.zip
Notes
Diffstat (limited to 'comms/viewfax')
-rw-r--r--comms/viewfax/Makefile2
-rw-r--r--comms/viewfax/files/patch-aa2
2 files changed, 2 insertions, 2 deletions
diff --git a/comms/viewfax/Makefile b/comms/viewfax/Makefile
index 016158a112a4..473247dcbd80 100644
--- a/comms/viewfax/Makefile
+++ b/comms/viewfax/Makefile
@@ -7,7 +7,7 @@
PORTNAME= viewfax
PORTVERSION= 2.3
-PORTREVISION= 1
+PORTREVISION= 2
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 b8782ecf2042..3030676024f0 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 || LineNum >= pn->height && tot >= pn->width )
+ break;
if (pix)
acc |= (~(t32bits)0 >> nacc);