summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/libtiff/files/002_support_patch_for_CVE-2020-35521_and_CVE-2020-35522.patch
blob: b6e1842a5455fc402c8a597944220fc57cf667fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From ca70b5e702b9f503333344b2d46691de9feae84e Mon Sep 17 00:00:00 2001
From: Even Rouault <even.rouault@spatialys.com>
Date: Sat, 3 Oct 2020 18:16:27 +0200
Subject: [PATCH] tiff2rgba.c: fix -Wold-style-declaration warning

Signed-off-by: akash hadke <akash.hadke@kpit.com>
---
 tools/tiff2rgba.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
Upstream-Status: Backport [https://gitlab.com/libtiff/libtiff/-/commit/ca70b5e702b9f503333344b2d46691de9feae84e.patch]
---
diff --git a/tools/tiff2rgba.c b/tools/tiff2rgba.c
index ef643653..fbc383aa 100644
--- a/tools/tiff2rgba.c
+++ b/tools/tiff2rgba.c
@@ -538,7 +538,7 @@ tiffcvt(TIFF* in, TIFF* out)
             return( cvt_whole_image( in, out ) );
 }
 
-const static char* stuff[] = {
+static const char* stuff[] = {
     "usage: tiff2rgba [-c comp] [-r rows] [-b] [-n] [-8] input... output",
     "where comp is one of the following compression algorithms:",
     " jpeg\t\tJPEG encoding",
-- 
GitLab