aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-12-15 13:43:33 +0000
committerTatsuya Kinoshita <tats@debian.org>2016-12-15 13:43:33 +0000
commit3eab80f2a1f5f9625e484798fa74c8ca91835851 (patch)
tree7a55ae69e4b128ca6165045144e2d631db107d14
parentRevert "Prevent overflow beyond the end of string in proc_mchar()" (diff)
downloadw3m-3eab80f2a1f5f9625e484798fa74c8ca91835851.tar.gz
w3m-3eab80f2a1f5f9625e484798fa74c8ca91835851.zip
Revert "Prevent overflow beyond the end of string in textfieldrep()"
This reverts commit 77d8d8d6576d8afc0f6b2e09bb88c7ca9dba58bb.
Diffstat (limited to '')
-rw-r--r--form.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/form.c b/form.c
index 9c40b44..fdad786 100644
--- a/form.c
+++ b/form.c
@@ -526,8 +526,6 @@ textfieldrep(Str s, int width)
for (i = 0; i < s->length; i += c_len) {
c_type = get_mctype((unsigned char *)&s->ptr[i]);
c_len = get_mclen(&s->ptr[i]);
- if (i + c_len > s->length)
- break;
if (s->ptr[i] == '\r')
continue;
k = j + get_mcwidth(&s->ptr[i]);