summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2019-03-01 18:20:36 +0100
committerVirgil Dupras <vdupras@gentoo.org>2019-03-03 08:46:20 -0500
commit778c9f8a6fe043d449399a45c35afb30f1a624a1 (patch)
tree2e6e25e07a83f54b1f32d59b4653b06b3223ded9 /dev-libs
parentapp-antivirus/clamav: Stable for HPPA too. (diff)
downloadgentoo-778c9f8a6fe043d449399a45c35afb30f1a624a1.tar.gz
gentoo-778c9f8a6fe043d449399a45c35afb30f1a624a1.tar.bz2
gentoo-778c9f8a6fe043d449399a45c35afb30f1a624a1.zip
dev-libs/libutf8proc: remove unused patch(es)
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/11190 Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libutf8proc/files/libutf8proc-1.3.1_p2-overrun.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/dev-libs/libutf8proc/files/libutf8proc-1.3.1_p2-overrun.patch b/dev-libs/libutf8proc/files/libutf8proc-1.3.1_p2-overrun.patch
deleted file mode 100644
index 8ce7f4cfbe98..000000000000
--- a/dev-libs/libutf8proc/files/libutf8proc-1.3.1_p2-overrun.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- libutf8proc-1.3.1-2/test/iterate.c
-+++ libutf8proc-1.3.1-2/test/iterate.c
-@@ -13,11 +13,17 @@ static void testbytes(unsigned char *buf, int len, utf8proc_ssize_t retval, int
- utf8proc_int32_t out[16];
- utf8proc_ssize_t ret;
-
-+ /* Make a copy to ensure that memory is left uninitialized after "len"
-+ * bytes. This way, Valgrind can detect overreads.
-+ */
-+ unsigned char tmp[16];
-+ memcpy(tmp, buf, len);
-+
- tests++;
-- if ((ret = utf8proc_iterate(buf, len, out)) != retval) {
-+ if ((ret = utf8proc_iterate(tmp, len, out)) != retval) {
- fprintf(stderr, "Failed (%d):", line);
- for (int i = 0; i < len ; i++) {
-- fprintf(stderr, " 0x%02x", buf[i]);
-+ fprintf(stderr, " 0x%02x", tmp[i]);
- }
- fprintf(stderr, " -> %zd\n", ret);
- error++;
---- libutf8proc-1.3.1-2/src/utf8proc.c
-+++ libutf8proc-1.3.1-2/src/utf8proc.c
-@@ -128,7 +128,7 @@ UTF8PROC_DLLEXPORT utf8proc_ssize_t utf8proc_iterate(
- if ((uc - 0xc2) > (0xf4-0xc2)) return UTF8PROC_ERROR_INVALIDUTF8;
- if (uc < 0xe0) { // 2-byte sequence
- // Must have valid continuation character
-- if (!utf_cont(*str)) return UTF8PROC_ERROR_INVALIDUTF8;
-+ if (str >= end || !utf_cont(*str)) return UTF8PROC_ERROR_INVALIDUTF8;
- *dst = ((uc & 0x1f)<<6) | (*str & 0x3f);
- return 2;
- }