openbsd-ports/archivers/cabextract/patches/patch-mempcpy_c
robert a44a74380c SECURITY:
upgrade to 1.1;
A directory-traversal issue exists in cabextract
that could overwrite any file on the system when extracting
a malicious cab file.

from maintainer; the issue has also been reported by matthieu@
2004-10-23 15:54:42 +00:00

17 lines
389 B
Plaintext

$OpenBSD: patch-mempcpy_c,v 1.1 2004/10/23 15:54:42 robert Exp $
--- mempcpy.c.orig Sat Oct 23 09:46:58 2004
+++ mempcpy.c Sat Oct 23 09:47:11 2004
@@ -29,7 +29,12 @@ Copies @var{length} bytes from memory re
*/
+#ifndef __OpenBSD__
#include <ansidecl.h>
+#else
+#define PARAMS(ARGS) ARGS
+#define PTR void *
+#endif
#ifdef ANSI_PROTOTYPES
#include <stddef.h>
#else