Skip to content

Commit 553661e

Browse files
Apply SPDX convbention. Supply a missing header.
1 parent befe188 commit 553661e

29 files changed

+59
-16
lines changed

NEWS

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Reopository head:
77
Note: The undocumented and deprecated GifQuantizeBuffer() eentry point
88
has been moved to the util library to reduce libgif size and attack
99
surface. Applications needing this function are couraged to link the
10-
utuil library or make their own copy.
10+
util library or make their own copy.
1111

1212
* Address SourceForge issue #136: Stack-buffer-overflow in gifcolor.c:84
1313

@@ -63,13 +63,13 @@ Code Fixes
6363
* Fix SF bug #113: Heap Buffer Overflow-2 in function DGifDecompressLine()
6464
in cgif.c. This had been assigned CVE-2018-11490.
6565

66-
# Fix SF bug #111: segmentation fault in PrintCodeBlock
66+
* Fix SF bug #111: segmentation fault in PrintCodeBlock
6767

6868
* Fix SF bug #109: Segmentation fault of giftool reading a crafted file
6969

7070
* Fix SF bug #107: Floating point exception in giftext utility
7171

72-
* Fix SF bug: #105 heap buffer overflow in DumpScreen2RGB in gif2rgb.c:317
72+
* Fix SF bug #105: heap buffer overflow in DumpScreen2RGB in gif2rgb.c:317
7373

7474
* Fix SF bug #104: Ineffective bounds check in DGifSlurp
7575

dgif_lib.c

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The functions here and in egif_lib.c are partitioned carefully so that
66
if you only require one of read and write capability, only one of these
77
two modules will be linked. Preserve this property!
88
9+
SPDX-License-Identifier: MIT
10+
911
*****************************************************************************/
1012

1113
#include <stdlib.h>

egif_lib.c

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The functions here and in dgif_lib.c are partitioned carefully so that
66
if you only require one of read and write capability, only one of these
77
two modules will be linked. Preserve this property!
88
9+
SPDX-License-Identifier: MIT
10+
911
*****************************************************************************/
1012

1113
#include <stdint.h>

getarg.c

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ Example1 [-i OneIngeter] [-s Strings...] [-j] -k Float Files...
102102
1. This module assumes that all the pointers to all kind of data types
103103
have the same length and format, i.e. sizeof(int *) == sizeof(char *).
104104
105+
SPDX-License-Identifier: MIT
106+
105107
**************************************************************************/
106108

107109
#include <stdlib.h>

getarg.h

+3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
33
getarg.h - Support routines for the giflib utilities
44
5+
SPDX-License-Identifier: MIT
6+
57
**************************************************************************/
68

79
#ifndef _GETARG_H
810
#define _GETARG_H
911

12+
#include "gif_lib.h"
1013
#include <stdbool.h>
1114

1215
#define VERSION_COOKIE " Version %d.%d, "

gif2rgb.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gif2rgb - convert GIF to 24-bit RGB pixel triples or vice-versa
44
5+
SPDX-License-Identifier: MIT
6+
57
*****************************************************************************/
68

79
/***************************************************************************

gif_err.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gif_err.c - handle error reporting for the GIF library.
44
5+
SPDX-License-Identifier: MIT
6+
57
****************************************************************************/
68

79
#include <stdio.h>

gif_font.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gif_font.c - utility font handling and simple drawing for the GIF library
44
5+
SPDX-License-Identifier: MIT
6+
57
****************************************************************************/
68

79
#include <string.h>

gif_hash.c

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ gif_hash.c -- module to support the following operations:
99
1010
This module is used to hash the GIF codes during encoding.
1111
12+
SPDX-License-Identifier: MIT
13+
1214
*****************************************************************************/
1315

1416
#include <stdint.h>

gif_hash.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gif_hash.h - magfic constants and declarations for GIF LZW
44
5+
SPDX-License-Identifier: MIT
6+
57
******************************************************************************/
68

79
#ifndef _GIF_HASH_H_

gif_lib.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gif_lib.h - service library for decoding and encoding GIF images
44
5+
SPDX-License-Identifier: MIT
6+
57
*****************************************************************************/
68

79
#ifndef _GIF_LIB_H_

gif_lib_private.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gif_lib_private.h - internal giflib routines and structures
44
5+
SPDX-License-Identifier: MIT
6+
57
****************************************************************************/
68

79
#ifndef _GIF_LIB_PRIVATE_H

gifalloc.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
GIF construction tools
44
5+
SPDX-License-Identifier: MIT
6+
57
****************************************************************************/
68

79
#include <stdlib.h>

gifbg.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gifbg - generate a test-pattern GIF
44
5+
SPDX-License-Identifier: MIT
6+
57
*****************************************************************************/
68

79
#include <stdio.h>

gifbuild.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gifbuild - dump GIF data in a textual format, or undump it to a GIF
44
5+
SPDX-License-Identifier: MIT
6+
57
*****************************************************************************/
68

79
#include <stdlib.h>

gifclrmp.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gifclrmap - extract colormaps from GIF images
44
5+
SPDX-License-Identifier: MIT
6+
57
*****************************************************************************/
68

79
#include <math.h>

gifcolor.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gifcolor - generate color test-pattern GIFs
44
5+
SPDX-License-Identifier: MIT
6+
57
*****************************************************************************/
68

79
#include <stdlib.h>

gifecho.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gifecho - generate a GIF from ASCII text
44
5+
SPDX-License-Identifier: MIT
6+
57
*****************************************************************************/
68

79
#include <stdlib.h>

giffilter.c

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ copy an image from a much more (or much *less*) memory-limited system; your
1616
compression may use more (or fewer) bits. The uncompressed rasters should,
1717
however, be identical (you can check this with gifbuild -d).
1818
19+
SPDX-License-Identifier: MIT
20+
1921
******************************************************************************/
2022

2123
#include <stdio.h>

giffix.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
giffix - attempt to fix a truncated GIF
44
5+
SPDX-License-Identifier: MIT
6+
57
*****************************************************************************/
68

79
#include <stdlib.h>

gifhisto.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gifhisto - make a color histogram from image color frequencies
44
5+
SPDX-License-Identifier: MIT
6+
57
*****************************************************************************/
68

79
#include <stdlib.h>

gifinto.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gifinto - save GIF on stdin to file if size over set threshold
44
5+
SPDX-License-Identifier: MIT
6+
57
*****************************************************************************/
68

79
#include <fcntl.h>

gifsponge.c

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ copy an image from a much more (or much *less*) memory-limited system; your
1616
compression may use more (or fewer) bits. The uncompressed rasters should,
1717
however, be identical (you can check this with gifbuild -d).
1818
19+
SPDX-License-Identifier: MIT
20+
1921
****************************************************************************/
2022

2123
#include <stdio.h>

giftext.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
giftext - dump GIF pixels and metadata as text
44
5+
SPDX-License-Identifier: MIT
6+
57
*****************************************************************************/
68

79
#include <stdlib.h>

giftool.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
giftool.c - GIF transformation tool.
44
5+
SPDX-License-Identifier: MIT
6+
57
****************************************************************************/
68

79
#include <stdio.h>

gifwedge.c

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
gifwedge - create a GIF test pattern
44
5+
SPDX-License-Identifier: MIT
6+
57
*****************************************************************************/
68

79
#include <stdlib.h>

openbsd-reallocarray.c

+1-13
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
1-
/* $OpenBSD: reallocarray.c,v 1.1 2014/05/08 21:43:49 deraadt Exp $ */
21
/*
32
* Copyright (c) 2008 Otto Moerbeek <[email protected]>
4-
*
5-
* Permission to use, copy, modify, and distribute this software for any
6-
* purpose with or without fee is hereby granted, provided that the above
7-
* copyright notice and this permission notice appear in all copies.
8-
*
9-
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10-
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11-
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12-
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13-
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14-
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15-
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3+
* SPDX-License-Identifier: MIT
164
*/
175

186
#include <sys/types.h>

qprintf.c

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
55
A global variable GifNoisyPrint controls the printing of this routine
66
7+
SPDX-License-Identifier: MIT
8+
79
*****************************************************************************/
810

911

quantize.c

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
and was removed in 4.2. Then it turned out some client apps were
1010
actually using it, so it was restored in 5.0.
1111
12+
SPDX-License-Identifier: MIT
13+
1214
******************************************************************************/
1315

1416
#include <stdlib.h>

0 commit comments

Comments
 (0)