File CVE-2014-9488.patch of Package less.33613

diff -Nurp less-458-orig/line.c less-458/line.c
--- less-458-orig/line.c	2019-04-24 10:37:03.453296009 +0200
+++ less-458/line.c	2019-04-24 10:38:08.049097971 +0200
@@ -828,7 +828,7 @@ pappend(c, pos)
 			mbc_buf[mbc_buf_index++] = c;
 			if (mbc_buf_index < mbc_buf_len)
 				return (0);
-			if (is_utf8_well_formed(mbc_buf))
+			if (is_utf8_well_formed(mbc_buf, mbc_buf_index))
 				r = do_append(get_wchar(mbc_buf), mbc_buf, mbc_pos);
 			else
 				/* Complete, but not shortest form, sequence. */
openSUSE Build Service is sponsored by