From 1440bb9cc7bb0a3337984ea1e372689d75fb9ba4 Mon Sep 17 00:00:00 2001
From: Andreas Wacknitz <A.Wacknitz@gmx.de>
Date: Tue, 07 Nov 2023 18:03:58 +0100
Subject: [PATCH] jasper: update to 4.1.0 & switch to libjpeg8-turbo

---
 components/multimedia/jasper/patches/02-fix-filename-buffer-overflow.patch |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/components/multimedia/jasper/patches/02-fix-filename-buffer-overflow.patch b/components/multimedia/jasper/patches/02-fix-filename-buffer-overflow.patch
index e95ed9c..0ccfe26 100644
--- a/components/multimedia/jasper/patches/02-fix-filename-buffer-overflow.patch
+++ b/components/multimedia/jasper/patches/02-fix-filename-buffer-overflow.patch
@@ -3,17 +3,17 @@
 Author: Roland Stigge <stigge@antcom.de>
 Bug-Debian: http://bugs.debian.org/645118
 
---- a/src/libjasper/include/jasper/jas_stream.h
-+++ b/src/libjasper/include/jasper/jas_stream.h
+--- jasper-4.1.0/src/libjasper/include/jasper/jas_stream.h.orig	2023-11-05 07:24:51.000000000 +0100
++++ jasper-4.1.0/src/libjasper/include/jasper/jas_stream.h	2023-11-07 07:25:12.340731017 +0100
 @@ -77,6 +77,7 @@
- #include <jasper/jas_config.h>
+ #include <jasper/jas_config.h> /* IWYU pragma: export */
  
  #include <stdio.h>
 +#include <limits.h>
  #if defined(JAS_HAVE_FCNTL_H)
  #include <fcntl.h>
  #endif
-@@ -99,6 +100,12 @@ extern "C" {
+@@ -100,6 +101,12 @@
  #define O_BINARY	0
  #endif
  
@@ -26,12 +26,12 @@
  /*
   * Stream open flags.
   */
-@@ -251,7 +258,7 @@ typedef struct {
- typedef struct {
- 	int fd;
- 	int flags;
+@@ -261,7 +268,7 @@
+ #if defined(JAS_WASI_LIBC)
+ #define L_tmpnam 4096
+ #endif
 -	char pathname[L_tmpnam + 1];
 +	char pathname[JAS_PATH_MAX + 1];
  } jas_stream_fileobj_t;
  
- #define	JAS_STREAM_FILEOBJ_DELONCLOSE	0x01
+ /* Delete underlying file object upon stream close. */

--
Gitblit v1.9.3