diff options
author | wiz <wiz@pkgsrc.org> | 2003-11-27 20:29:48 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2003-11-27 20:29:48 +0000 |
commit | 511619f71bc71b198a09c1fd2c0da7ab43949a87 (patch) | |
tree | 648551c392045c925b86b16d2763b0b90f10a810 /misc/screen/patches | |
parent | 0736804eabd5293175ebcc280f91db67f754bf4e (diff) | |
download | pkgsrc-511619f71bc71b198a09c1fd2c0da7ab43949a87.tar.gz |
Fix
http://www.securityfocus.com/archive/1/345844
with the patches supplied there.
Bump PKGREVISION to 1.
Diffstat (limited to 'misc/screen/patches')
-rw-r--r-- | misc/screen/patches/patch-ab | 13 | ||||
-rw-r--r-- | misc/screen/patches/patch-ac | 22 |
2 files changed, 35 insertions, 0 deletions
diff --git a/misc/screen/patches/patch-ab b/misc/screen/patches/patch-ab new file mode 100644 index 00000000000..e03da5b9129 --- /dev/null +++ b/misc/screen/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.8 2003/11/27 20:29:48 wiz Exp $ + +--- ansi.c.orig Mon Sep 8 16:24:44 2003 ++++ ansi.c +@@ -559,7 +559,7 @@ register int len; + { + case '0': case '1': case '2': case '3': case '4': + case '5': case '6': case '7': case '8': case '9': +- if (curr->w_NumArgs < MAXARGS) ++ if (curr->w_NumArgs >= 0 && curr->w_NumArgs < MAXARGS) + { + if (curr->w_args[curr->w_NumArgs] < 100000000) + curr->w_args[curr->w_NumArgs] = diff --git a/misc/screen/patches/patch-ac b/misc/screen/patches/patch-ac new file mode 100644 index 00000000000..e0f2afcbf5c --- /dev/null +++ b/misc/screen/patches/patch-ac @@ -0,0 +1,22 @@ +$NetBSD: patch-ac,v 1.6 2003/11/27 20:29:48 wiz Exp $ + +--- resize.c.orig Mon Sep 8 16:26:31 2003 ++++ resize.c +@@ -682,6 +682,17 @@ int wi, he, hi; + if (wi == 0) + he = hi = 0; + ++ if (wi > 1000) ++ { ++ Msg(0, "Window width too large, truncated"); ++ wi = 1000; ++ } ++ if (he > 1000) ++ { ++ Msg(0, "Window height too large, truncated"); ++ he = 1000; ++ } ++ + if (p->w_width == wi && p->w_height == he && p->w_histheight == hi) + { + debug("ChangeWindowSize: No change.\n"); |