openbsd-ports/converters/mpack/patches/patch-magic_c
naddy 78b1720bcc SECURITY fixes, submitted by Nick Nauwelaerts <nick@wanadoo.be>:
* Fix buffer overflow.  (Obtained from Debian)
* Strip leading "../" when creating new files.  (Obtained from Debian)

Clean-up by yours truly:

* Parameter parsing fix.  (Obtained from Debian)
* Prefer native getopt() and MD5 functions over the included ones.
* Make munpack synopsis agree with actual parameters.
* Respect CC.
2002-08-09 01:15:19 +00:00

12 lines
308 B
Plaintext

$OpenBSD: patch-magic_c,v 1.1 2002/08/09 01:15:19 naddy Exp $
--- magic.c.orig Fri Aug 9 02:36:58 2002
+++ magic.c Fri Aug 9 02:37:21 2002
@@ -23,6 +23,7 @@
* SOFTWARE.
*/
#include <stdio.h>
+#include <string.h>
/* Description of the various file formats and their magic numbers */
struct magic {