diff options
author | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-03 16:44:14 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-03 16:44:14 +0000 |
commit | 3ed51b364482af64749980ed7ce67812046b1713 (patch) | |
tree | a0cc68bf216c153e65f3b336b6b3b043132c42cb /debian/patches/03-w3m-mime-buffer-overflow-fix-backport-from-w3m-dev-02066 | |
parent | Adding upstream version 0.1.10+0.1.11pre+kokb23 (diff) | |
download | w3m-3ed51b364482af64749980ed7ce67812046b1713.tar.gz w3m-3ed51b364482af64749980ed7ce67812046b1713.zip |
Releasing debian version 0.1.10+0.1.11pre+kokb23-4debian/0.1.10+0.1.11pre+kokb23-4
Diffstat (limited to '')
-rw-r--r-- | debian/patches/03-w3m-mime-buffer-overflow-fix-backport-from-w3m-dev-02066 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/03-w3m-mime-buffer-overflow-fix-backport-from-w3m-dev-02066 b/debian/patches/03-w3m-mime-buffer-overflow-fix-backport-from-w3m-dev-02066 new file mode 100644 index 0000000..7c47d04 --- /dev/null +++ b/debian/patches/03-w3m-mime-buffer-overflow-fix-backport-from-w3m-dev-02066 @@ -0,0 +1,28 @@ +--- mimehead.c.orig Tue Jun 6 14:39:13 2000 ++++ mimehead.c Wed Jun 20 11:21:02 2001 +@@ -166,21 +166,20 @@ + Str + decodeWord(char **ow) + { +- char charset[32]; + char *p, *w = *ow; + char method; + Str a = Strnew(); ++ Str charset = Strnew(); + + if (*w != '=' || *(w + 1) != '?') + goto convert_fail; + w += 2; +- for (p = charset; *w != '?'; w++) { ++ for (; *w != '?'; w++) { + if (*w == '\0') + goto convert_fail; +- *(p++) = *w; ++ Strcat_char(charset, *w); + } +- *p = '\0'; +- if (strcasecmp(charset, J_CHARSET) != 0) { ++ if (Strcasecmp_charp(charset, J_CHARSET) != 0) { + /* NOT ISO-2022-JP encoding ... don't convert */ + goto convert_fail; + } |