summaryrefslogtreecommitdiff
path: root/graphics/libwmf/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libwmf/patches/patch-af')
-rw-r--r--graphics/libwmf/patches/patch-af38
1 files changed, 0 insertions, 38 deletions
diff --git a/graphics/libwmf/patches/patch-af b/graphics/libwmf/patches/patch-af
deleted file mode 100644
index 169d9b55bc4..00000000000
--- a/graphics/libwmf/patches/patch-af
+++ /dev/null
@@ -1,38 +0,0 @@
-$NetBSD: patch-af,v 1.1 2007/09/19 15:39:13 jlam Exp $
-
---- src/player.c.orig Tue Dec 10 19:30:26 2002
-+++ src/player.c
-@@ -43,6 +43,16 @@
- #include "player/record.h" /* Provides: parameter mechanism */
- #include "player/meta.h" /* Provides: record interpreters */
-
-+#ifdef HAVE_STDINT_H
-+#include <stdint.h>
-+#endif
-+#ifndef UINT32_MAX
-+#include <limits.h>
-+#endif
-+#ifndef UINT32_MAX
-+#define UINT32_MAX UINT_MAX
-+#endif
-+
- /**
- * @internal
- */
-@@ -132,8 +142,14 @@ wmf_error_t wmf_scan (wmfAPI* API,unsign
- }
- }
-
--/* P->Parameters = (unsigned char*) wmf_malloc (API,(MAX_REC_SIZE(API)-3) * 2 * sizeof (unsigned char));
-- */ P->Parameters = (unsigned char*) wmf_malloc (API,(MAX_REC_SIZE(API) ) * 2 * sizeof (unsigned char));
-+ if (MAX_REC_SIZE(API) > UINT32_MAX/ 2)
-+ {
-+ API->err = wmf_E_InsMem;
-+ WMF_DEBUG (API,"bailing...");
-+ return (API->err);
-+ }
-+
-+ P->Parameters = (unsigned char*) wmf_malloc (API,(MAX_REC_SIZE(API) ) * 2 * sizeof (unsigned char));
-
- if (ERR (API))
- { WMF_DEBUG (API,"bailing...");