diff options
author | hubertf <hubertf> | 1998-04-25 22:39:29 +0000 |
---|---|---|
committer | hubertf <hubertf> | 1998-04-25 22:39:29 +0000 |
commit | 0718b61ac4d8c879309c9feff08e4deda051f92a (patch) | |
tree | b36e23cc270ee9799edc10230e5e6776a48982d1 /mail/pine | |
parent | 7a3465d326217a2fb5446f39c4b1bc260b10ba8c (diff) | |
download | pkgsrc-0718b61ac4d8c879309c9feff08e4deda051f92a.tar.gz |
Fix that pico-bug mentioned on bugtraq. (See this patchfile for the
original mail, with the fix' path edited to work for the NetBSD pkg
system).
Diffstat (limited to 'mail/pine')
-rw-r--r-- | mail/pine/patches/patch-pine-bugtraq | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mail/pine/patches/patch-pine-bugtraq b/mail/pine/patches/patch-pine-bugtraq new file mode 100644 index 00000000000..59c8098e618 --- /dev/null +++ b/mail/pine/patches/patch-pine-bugtraq @@ -0,0 +1,33 @@ +Date: Sat, 25 Apr 1998 14:24:43 +0200 +From: Michal Zalewski <lcamtuf@BOSS.STASZIC.WAW.PL> +To: BUGTRAQ@NETSPACE.ORG +Subject: pine/pico vt control characters bug + +Pico, an editor included with pine 3.96 package, handles vt control +characters (eg. 0x9B) improperly, so it's possible to do almost anything +when normal text file is viewed with pico. Example? Try viewing file +containing only two characters: 0x9B and 0x63... That's not all, pico is +called by pine when you're replying to mail message. Anyone may insert any +control chars (using quoted-printable encoding) to his signature. + +Fix (edited for NetBSD's pkg system): + +--- pico/display.c.orig Sun Apr 26 00:16:06 1998 ++++ pico/display.c Sun Apr 26 00:17:12 1998 +@@ -266,7 +266,7 @@ + } + while ((vtcol&0x07) != 0); + } +- else if (c.c < 0x20 || c.c == 0x7F) { ++ else if (c.c < 0x20 || c.c == 0x7F || c.c == 0x9B) { + ac.c = '^'; + vtputc(ac); + ac.c = (c.c ^ 0x40); + +(should help, at least in above situation) + +_______________________________________________________________________ +Michal Zalewski [lcamtuf@boss.staszic.waw.pl] <= finger for pub PGP key +Iterowac jest rzecza ludzka, wykonywac rekursywnie - boska [P. Deutsch] +[echo "\$0&\$0">_;chmod +x _;./_] <=------=> [tel +48 (0) 22 813 25 86] + |