diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-12-15 13:43:33 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-12-15 13:43:33 +0000 |
commit | 3eab80f2a1f5f9625e484798fa74c8ca91835851 (patch) | |
tree | 7a55ae69e4b128ca6165045144e2d631db107d14 /form.c | |
parent | Revert "Prevent overflow beyond the end of string in proc_mchar()" (diff) | |
download | w3m-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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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]); |