openbsd-ports/converters/mpack/patches/patch-codes_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

14 lines
419 B
Plaintext

$OpenBSD: patch-codes_c,v 1.1 2002/08/09 01:15:19 naddy Exp $
--- codes.c.orig Fri Aug 9 02:55:28 2002
+++ codes.c Fri Aug 9 02:56:20 2002
@@ -38,8 +38,8 @@ WITHOUT ANY EXPRESS OR IMPLIED WARRANTIE
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#include <md5.h>
#include "xmalloc.h"
-#include "md5.h"
static char basis_64[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";