Debian Codegraph @

NEWS

raw
1 GIFLIB NEWS
2
3 Version 6.1.3
4 =============
5
6 Code fixes
7 ----------
8
9 * Fix SF bugs #194, #195, #196, #197: these were in the gif_fiont.c
10 code, which is a historical relic not affecting general library clients.
11
12 * Fix SF bug #193, double free on malicious GIF when built with reallocarray.
13
14 Version 6.1.2
15 =============
16
17 Code Fixes
18 ----------
19
20 * Fix for low-severity CVE-2026-23868 affecting gifponge, giftool, and gifbuild,
21 but not the core library - library clients need not be alarned.
22
23 Version 6.1.1
24 =============
25
26 This release bumps the major version, but only one entry point -
27 EGifSpew() - has changed signature and behavior (in order to be able
28 to pass out a detailed error code). The internal error
29 codes in the E_GIF_ERR series have changed value so none of them
30 collides with GIF_ERROR.
31
32 This code has been systematically audited and hardened wuth
33 ChatGPT-5.2. The only library fixes reported by users or found by
34 robot were for some memory leaks that could only triggered by severely
35 malformed GIFs. Other bugs are edge-case failures in the CLI tools.
36
37 The gif2rbg CLI tool has been moved to the "obsolete" bin, because its
38 only deployment case in 2026 is as a piñata at fuzzer parties.
39
40 Warning: the CLI tools in the obsolete category will soon be removed
41 from the distribution entirely. The maintainer is tired of fielding
42 junk bugs filed against them by would-be coup-counters who found yet
43 another edge case, and the rest of the world doesn't need noisy CVEs
44 that aren't actually DoS or security issues for giflib clients.
45
46 Code Fixes
47 ----------
48
49 * Fix for CVE-2021-40633.
50
51 * Fix SF bug #165 EGifSpew leaks GifFileOut->SColorMap
52
53 * Fix SF bug #171 ImageMagick required to build giflib on non-Darwin Platforms
54
55 * Fix SF bug #172 Incorrect object files in shared libutil on darwin
56
57 * Fix SF bug #173 installation of manual pages and html documentation
58
59 * Fix SF bug #175 Memory leaks in gifecho.c's main() and in gifalloc.c's GifMakeMapObject
60
61 * Fix SF bug #177 wrong pointer used in giftool getbool
62
63 * Fix SF bug #179 Path Traversal vulnerability
64
65 * Fix SF bug #180: -Wformat-truncation likely pointing out an actual bug
66
67 * Fix SF bug #182 out‐of‐bounds writes in Icon2Gif
68
69 * Fix SF bug #184 uninitialized buffer in DumpScreen2RGB
70
71 * Fix SF bug #185 integer overflow in gifbg.c
72
73 * Fix SF bug #186 integer overflow in Icon2Gif
74
75 * Fix SF bug #187: CVE-2025-31344
76
77 * Fix SF bug #170 Tests failing on Ubuntu Noble, giftext buffer overflow
78
79 * Fix SF bug #165 EGifSpew leaks GifFileOut->SColorMap
80
81 * Fix SF bug #162 detected memory leaks in GifMakeSavedImage giflib/gifalloc.c
82
83 * Fix SF bug #161 detected memory leaks in EGifOpenFileHandle giflib/egif_lib.c
84
85 * Fix SF bug #142 ABI break public symbol GifQuantizeBuffer
86
87 Other bugs that duplicate these have been addressesed by these fixes
88
89 * SF bug #156 EGifSpew leaks SavedImages (and more); won't fix, caller
90 might want to write a GIF, modify the in-memory data, then write
91 again.
92
93 Tests
94 -----
95
96 Test suite now emits TAP (Test Anything Protocol).
97
98 ==============================================================================
99
100 Version 5.2.2
101 =============
102
103 This is a point release intended to clear up a couple of CVEs and
104 apply point fixes that have been accumulating since 5.2.1
105
106 There are a few unresolved (but minor) memory leaks related to design
107 issues in the API that still need to be resolved. Expect those fixes
108 in the next release.
109
110 Code Fixes
111 ----------
112
113 * Fixes for CVE-2023-48161, CVE-2022-28506
114
115 * Address SF issue #138 Documentation for obsolete utilities still installed
116
117 * Address SF issue #139: Typo in "LZW image data" page ("110_2 = 4_10")
118
119 * Address SF issue #140: Typo in "LZW image data" page ("LWZ")
120
121 * Address SF issue #141: Typo in "Bits and bytes" page ("filed")
122
123 * Note as already fixed SF issue #143: cannot compile under mingw
124
125 * Address SF issue #144: giflib-5.2.1 cannot be build on windows and other platforms using c89
126
127 * Address SF issue #145: Remove manual pages installation for binaries that are not installed too
128
129 * Address SF issue #146: Limit installed man pages to binaries, move giflib to section 7
130
131 * Address SF issue #147: Fixes to doc/whatsinagif/ content
132
133 * Address SF issue #148: heap Out of Bound Read in gif2rgb.c:298 DumpScreen2RGB
134
135 * Declared no-info on SF issue #150: There is a denial of service vulnerability in GIFLIB 5.2.1
136
137 * Declared Won't-fix on SF issue 149: Out of source builds no longer possible
138
139 * Address SF issue #151: A heap-buffer-overflow in gif2rgb.c:294:45
140
141 * Address SF issue #152: Fix some typos on the html documentation and man pages
142
143 * Address SF issue #153: Fix segmentation faults due to non correct checking for args
144
145 * Address SF issue #154: Recover the giffilter manual page
146
147 * Address SF issue #155: Add gifsponge docs
148
149 * Address SF issue #157: An OutofMemory-Exception or Memory Leak in gif2rgb
150
151 * Address SF issue #158: There is a null pointer problem in gif2rgb
152
153 * Address SF issue #159 A heap-buffer-overflow in GIFLIB5.2.1 DumpScreen2RGB() in gif2rgb.c:298:45
154
155 * Address SF issue #163: detected memory leaks in openbsd_reallocarray giflib/openbsd-reallocarray.c
156
157 * Address SF issue #164: detected memory leaks in GifMakeMapObject giflib/gifalloc.c
158
159 * Address SF issue #166: a read zero page leads segment fault in getarg.c and memory leaks in gif2rgb.c and gifmalloc.c
160
161 * Address SF issue #167: Heap-Buffer Overflow during Image Saving in DumpScreen2RGB Function at Line 321 of gif2rgb.c
162
163 ==============================================================================
164
165 Version 5.2.1
166 ==============
167
168 This is the "Maybe I shouldn't have done a release while in surgical recovery" release.
169
170 * In gifbuild.c, avoid a core dump on no color map.
171
172 * Restore inadvertently removed library version numbers in Makefile.
173
174 ==============================================================================
175
176 Version 5.2.0
177 =============
178
179 The undocumented and deprecated GifQuantizeBuffer() entry point
180 has been moved to the util library to reduce libgif size and attack
181 surface. Applications needing this function are couraged to link the
182 util library or make their own copy.
183
184 The following obsolete utility programs are no longer installed:
185 gifecho, giffilter, gifinto, gifsponge. These were either installed in
186 error or have been obsolesced by modern image-transformation tools
187 like ImageMagick convert. They may be removed entirely in a future
188 release.
189
190 * Address SourceForge issue #136: Stack-buffer-overflow in gifcolor.c:84
191
192 * Address SF bug #134: Giflib fails to slurp significant number of gifs
193
194 * Apply SPDX convention for license tagging.
195
196 ==============================================================================
197
198 Version 5.1.9
199 =============
200
201 The documentation directory now includes an HTMlified version of the
202 GIF89 standard, and a more detailed description of how LZW compression
203 is applied to GIFs.
204
205 * Address SF bug #129: The latest version of giflib cannot be build on windows.
206
207 * Address SF bug #126: Cannot compile giflib using c89
208
209 ==============================================================================
210
211 Version 5.1.8
212 =============
213
214 * Address SF bug #119: MemorySanitizer: FPE on unknown address. This is CVE-2019-15133
215
216 * Address SF bug #125: 5.1.7: xmlto is still required for tarball
217
218 * Address SF bug #124: 5.1.7: ar invocation is not crosscompile compatible
219
220 * Address SF bug #122: 5.1.7 installs manpages to wrong directory
221
222 * Address SF bug #121: make: getversion: Command not found
223
224 * Address SF bug #120: 5.1.7 does not build a proper library - no
225
226 ==============================================================================
227
228 Version 5.1.7
229 =============
230
231 Correct a minor packaging error (superfluous symlinks) in the 5.1.6 tarballs.
232
233 ==============================================================================
234
235 Version 5.1.6
236 =============
237
238 Build Fixes
239 -----------
240
241 Fix library installation in the Makefile.
242
243 ==============================================================================
244
245 Version 5.1.5
246 =============
247
248 Code Fixes
249 ----------
250
251 * Fix SF bug #114: Null dereferences in main() of gifclrmp
252
253 * Fix SF bug #113: Heap Buffer Overflow-2 in function DGifDecompressLine()
254 in cgif.c. This had been assigned CVE-2018-11490.
255
256 * Fix SF bug #111: segmentation fault in PrintCodeBlock
257
258 * Fix SF bug #109: Segmentation fault of giftool reading a crafted file
259
260 * Fix SF bug #107: Floating point exception in giftext utility
261
262 * Fix SF bug #105: heap buffer overflow in DumpScreen2RGB in gif2rgb.c:317
263
264 * Fix SF bug #104: Ineffective bounds check in DGifSlurp
265
266 ^ Fix SF bug #103: GIFLIB 5.1.4: DGifSlurp fails on empty comment
267
268 * Fix SF bug #87: Heap buffer overflow in 5.1.2 (gif2rgb).
269
270 Build Fixes
271 -----------
272
273 The horrible old autoconf build system has been removed with extreme prejudice.
274 You now build this simply by running "make" from the top-level directory.
275
276 ==============================================================================
277
278 Version 5.1.4
279 =============
280
281 Code Fixes
282 ----------
283
284 * Fix SF bug #94: giflib 5 loves to fail to load images... a LOT.
285
286 * Fix SF Bug #92: Fix buffer overread in gifbuild.
287
288 * Fix SF Bug #93: Add bounds check in gifbuild netscape2.0 path
289
290 * Fix SF Bug #89: Fix buffer overread in gifbuild.
291
292 ==============================================================================
293
294 Version 5.1.3
295 =============
296
297 As of this version the library and code has been seriously abused by fuzzers,
298 smoking out crash bugs (now fixed) induced by various kinds of severely
299 malformed GIF.
300
301 Code Fixes
302 ----------
303
304 * Prevent malloc randomess from causing the header output routine to emit
305 a GIF89 version string even when no GIF89 features are present. Only
306 breaks tests, not production code, but it's odd this wasn't caught sooner.
307
308 * Prevent malloc randomess from producing sporadic failures by causing
309 sanity checks added in 5.1.2 to misfire.
310
311 * Bulletproof gif2rgb against 0-height images. Addressed SF bug #78:
312 Heap overflow in gif2rgb with images of size 0, also SF bug #82.
313
314 * Remove unnecessary duplicate EGifClose() in gifcolor.c. Fixes SF bug #83
315 introduced in 5.1.2.
316
317 * Fix SF Bug #84: incorrect return of DGifSlurp().
318
319 ==============================================================================
320
321 Version 5.1.2
322 =============
323
324 Code Fixes
325 ----------
326
327 * Code hardening using reallocarray() from OpenBSD.
328
329 * Sanity check in giffilter catches files with malformed extension records
330 Fixes SourceForge bug #63: malformed gif causes segfault in giffilter.
331
332 * Inexpensive sanity check in DGifSlurp() catches malformed files with
333 no image descriptor. Fixes SourceForge bug #64: malformed gif causes
334 crash in giftool.
335
336 * Fix SourceForge bug #66: GifDrawBoxedText8x8() modifying constant input
337 parameter.
338
339 * Bail out of GIF read on invalid pixel width. Addresses Savannah bug
340 #67: invalid shift in dgif_lib.c
341
342 * Fix SourceForge bug #69: #69 Malformed: Gif file with no extension
343 block after a GRAPHICS_EXT_FUNC_CODE extension causes segfault (in
344 giftext).
345
346 * Fix SourceForge bug #71: Buffer overwrite when giffixing a malformed gif.
347
348 * Fix SourceForge bug #73: Null pointer deference in gifclrmap (only
349 reachable with malformed GIF).
350
351 * Fix SourceForge bug #74: Double free in gifsponge under 5.1.1,
352 for any valid gif image.
353
354 * Fix SourceForge bug #75: GAGetArgs overflows due to uncounted use of va_arg.
355
356 * Sanity check in giffix catches some malformed files. Addresses
357 SourceForge bug #77: dgif_lib.c: extension processing error
358
359
360 ==============================================================================
361
362 Version 5.1.1
363 =============
364
365 Code Fixes
366 ----------
367
368 * Numerous minor fixes in getarg.c. Affects only the utilities, not the
369 core library.
370
371 * Fix SourceForge bug #59: DGifOpen can segfault if DGifGetScreenDesc fails.
372
373 * SourceForge patch #20: In gifalloc, fix usage of realloc() in case of failure.
374
375 * Fix SourceForge bug #61 Leak in gifsponge.
376
377 Build Fixes
378 ----------
379
380 * glibtoolize port fix for OS X.
381
382 ==============================================================================
383
384 Version 5.1.0
385 =============
386
387 Changes to the API require a library major-version bump.
388
389 Code Fixes
390 ----------
391
392 * A small change to the API: DGifClose() and EGifClose() now take a
393 pointer-to-int second argument (like the corresponding openers)
394 where a diagnostic code will be deposited when they return
395 GIF_ERROR. This replaces the old behavior in which the GifFile
396 structure was left unfreed so the Error member in it could be filled
397 and remain available. The change was was required because it's
398 not always possible to free the struct afterwards. Case in point is
399 a C# wrapper for giflib (or any language/environment where you can't
400 just free objects allocated in a foreign shared library.)
401
402 * Minor fix for SF bug #56; BitsPerPixel may be left as uninitialized
403 value when reading (truncated) gif.
404
405 * Applied SF patch #17: Use a fallback on Windows where mkstemp is not
406 available.
407
408 * Applied SF patch #15: Code hardening, preventing spurious
409 defective-image messages.
410
411 Retirements
412 -----------
413
414 * Removed gif2raw from utils. Its blithe assumption that the EGA16
415 palette is a reliable default is now about 20 years obsolete. Format
416 conversion is better done with convert(1) from the ImageMagick suite,
417 anyway.
418
419 ==============================================================================
420
421 Version 5.0.6
422 =============
423
424 Minor fix for a rare memory leak (SF bug #55).
425
426 MinGW port fixes.
427
428 Repair the internal quantization function used in gif2rgb so it's
429 less vulnerable to cross-platform skew due to qsort() being unstable.
430 This shouldn't affect production use, it's just a cross-platform
431 issue for regression testing
432
433 ==============================================================================
434
435 Version 5.0.5
436 =============
437
438 Set the error return properly when a screen descriptor read fails.
439 Fixes for some minor API documentation bugs. Some internal manual
440 pages are not to be installed.
441
442 ==============================================================================
443
444 Version 5.0.4
445 =============
446
447 Fix for a rare misrendering bug when a GIF overruns the decompression-code
448 table. The image on which this was spotted was a relatively long-running
449 animated GIF; still images of ordinary size should have been immune.
450
451 ==============================================================================
452
453 Version 5.0.3
454 =============
455
456 Fix a build-system glitch so it will install manpages.
457
458 ==============================================================================
459
460 Version 5.0.2
461 =============
462
463 Documentation and polish
464 ------------------------
465 * Partial build is now possible on systems without xmlto.
466
467 Code Fixes
468 ----------
469 * Change unused return of EGifSetGifVersion() to void.
470 * Buffer overrun prevention in gifinto.
471
472 ==============================================================================
473
474 Version 5.0.1
475 =============
476
477 Documentation and polish
478 ------------------------
479 * There is now an installable manual page for the GIFLIB utility kit.
480
481 Retirements
482 -----------
483 * gifinter is gone. Use "convert -interlace line" from the ImageMagick suite.
484
485 Code Fixes
486 ----------
487 * In 5.0.0 the private gif89 bit wasn't being guaranteed cleared at
488 the beginning of EGifGetGifVersion(); this occasionally led to an
489 incorrect version prefix being issued dependent on the state of
490 malloced memory.
491 * An EGifSetGifVersion() function taking a GifFile argument has been
492 added for use with the low-level sequential API. This change requires
493 a bump of the library revision number.
494
495 ==============================================================================
496
497 Version 5.0.0
498 =============
499
500 Changes to the API require a library major-version bump. Certain
501 initialization functions have acquired an integer address argument for
502 passing back an error code, in order to avoid thread-unsafe static
503 storage. Application code using extension blocks will require minor
504 changes. A few functions have been renamed.
505
506 Code Fixes
507 ----------
508 * Fixes applied for CVE-2005-2974 and CVE-2005-3350
509 This closes Debian bug #337972.
510
511 New API Features
512 ----------------
513
514 Thread Safety
515 ~~~~~~~~~~~~~
516 The library is now completely re-entrant and thread-safe.
517
518 * Library error handling no longer uses a static cell to store the last
519 error code registered; that made the library thread-unsafe. For functions
520 other than GIF file openers, the code is now put in an Error member of
521 the GifFileType structure. The GifError() and GifLastError() functions
522 that referenced that static cell are gone, and the GifErrorString()
523 function introduced in the 4.2 release now takes an explicit error code
524 argument.
525 * GIF file openers - DGifOpenFileName(), DGifOpenFileHandle(), DGifOpen(),
526 EGifOpenFileName(), EGifOpenFileHandle(), and EGifOpen() - all now take
527 a final integer address argument. If non-null, this is used to pass
528 back an error code when the function returns NULL.
529
530 Extensions
531 ~~~~~~~~~~
532 The ExtensionBlock API has been repaired, solving some problems with GIF89
533 extension handling in earlier versions.
534
535 * DGifSlurp() and EGifSpew() now preserve trailing extension blocks with
536 no following image file.
537 * Three documented functions - EGifPutExtensionFirst(), EGifPutExtensionNext(),
538 and EGifPutExtensionLast() - have been relaced by new functions
539 EGifPutExtensionLeader(), EGifPutExtensionBlock(), and
540 EGifPutExtensionTrailer(). See the Compatibility section of
541 the library API documentation for details.
542 * New functions DGifSavedExtensionToGCB() and EGifGCBToSavedExtension()
543 make it easy to read and edit GIF89 graphics control blocks in saved images.
544
545 Namespacing
546 ~~~~~~~~~~~
547 All functions exported by giflib now have DGif, EGif, or Gif as a name prefix.
548
549 * Three documented functions - MakeMapObject(), FreeMapObject(), and
550 UnionColorMap() - have been renamed to GifMakeMapObject(),
551 GifFreeMapObject(), and GifUnionColorMap() respectively.
552 * The library Draw* functions are now prefixed GifDraw*, and the
553 text-drawing ones are suffixed with "8x8". This fixes a conflict
554 with the Windows API and leaves the door open for more general text-drawing
555 functions with different font sizes.
556
557 Other changes
558 ~~~~~~~~~~~~~
559 * DGifSlurp() and EGifSpew() now read and write interlaced images properly.
560 * The amazingly obscure colormap sort flag and pixel aspect ratio
561 features of GIF are now read and preserved, for whatever good that
562 may do.
563 * Six undocumented functions have been renamed; five of these take additional
564 or slightly different argument types. See the Compatibility section of
565 the library API documentation for details.
566 * There's now an EGifGetGifVersion() that computes the version EGifSpew()
567 will write.
568 * QuantizeBuffer() has been returned to the core library as GifQuantizeBuffer()
569 - turns out some important applications (notably mplayer) were using it.
570 * TRUE and FALSE macros are gone, also VoidPtr. No more namespace pollution.
571 * Various arguments have been made const where possible.
572
573 Retirements
574 -----------
575 * The (undocumented) gifinfo utility is gone. Use giftool -f instead.
576 * The gifburst utility is gone. Everybody has image viewers that
577 can pan now, and removing it gets rid of a dependency on Perl.
578 * gifcompose is gone. It was a decent idea when I wrote it in 1989,
579 but I did the same thing better and cleaner a decade later with
580 PILdriver in the PIL package. Removing it gets rid of a dependency
581 on shell.
582 * gif2x11 gifasm, gifcomb, gifflip, gifovly, gifpos, gifresize, and gifrotate
583 are all gone. The ImageMagick display(1)/convert(1) utilities and PILdriver
584 do these things better and in a format-independent way.
585 * Lennie Araki's Windows C++ wrapper is gone. It's eight years old,
586 unmaintained, he has dropped out of sight, and a better one needs to
587 be written to use the high-level GIFLIB API and GIF89 graphics
588 control extension support. We'll carry such a wrapper when we have
589 a maintainer for it.
590 * EGifSetVersion(), introduced in 4.2, is gone. The library always
591 writes GIF87 or GIF89 as required by the data. This change helps
592 with thread safety.
593
594 Utilities
595 ---------
596 * Several utilities have been renamed to (a) fix last-century's habit
597 of arbitarily smashing vowels out of names to make them just one or two
598 characters shorter, (b) ensure that every utility in this set has 'gif'
599 as a name prefix. Here's the list:
600
601 giffiltr -> giffilter
602 gifspnge -> gifsponge
603 icon2gif -> gifbuild
604 text2gif -> gifecho
605 raw2gif -> gif2raw
606
607 * To go with its new name, gif2raw now dumps raw pixels from a GIF if the
608 (previously required) size option is missing.
609 * Standalone rgb2gif is gone; the same capability is now a mode of gif2rgb.
610 * giftext displays the parsed contents of GIF89 graphics control blocks.
611 * gifbuild handles GIF89 graphics control blocks and Netscape animation
612 loop blocks; it can can display and update either.
613 * gifrotate and other filter utilities now preserve extension blocks,
614 including the graphics control information for transparency and delay time.
615 * A new utility, giftool, supports a wide variety of filtering operations
616 on GIFs, including: setting background and transparency colors, changing
617 interlacing, setting image delays, setting the user-input flag, and setting
618 the aspect-ratio byte. It can sequence multiple operations.
619 * The test-pattern generators gifbg, gifcolor, gihisto and gifwedge and the
620 code templates giffilter and gifsponge are no longer installed by default.
621
622 Documentation and polish
623 ------------------------
624 * The history.txt and build.txt and files from 4.2.0 now have .asc extensions
625 to indicate that they use asciidoc markup, contrasting with the txt
626 standards files from CompuServe.
627 * The documentation now includes "What's In A GIF", a very detailed narrative
628 description of the file format.
629 * The -A option of gifasm (for inserting a loop control block) is documented.
630 * The documentation directory includes a copy of the original GIF87
631 specification as well as GIF89's.
632 * The project now has a logo.
633
634 ==============================================================================
635
636 Version 4.2.0
637 =============
638
639 Now maintained by ESR again after handoff by Toshio Kuratomi.
640
641 Code Fixes
642 ----------
643 * Code updated internally to C99 to enable more correctness checks by
644 the compiler. Compiles under GCC 4.6.1 without errors or warnings.
645 * A rare resource leak in the colormap-object maker was found with
646 Coverity and fixed.
647 * The code now audits clean under Coverity and cppcheck.
648 * splint cleanup begun, there's a lot of work still to do on this.
649
650 New API Features
651 ----------------
652 * The default GIF version to write is now computed at write time from
653 the types of an image's extension blocks, but can be overridden with
654 EGifSetGifVersion().
655 * EGifSpew() is now thread-safe.
656 * Two new functions, GifError() and GifErrorString(),
657 return the error state in a form that can be used by programs.
658 * Two library functions - EGifOpenFileName() and EGifPutImageDesc() -
659 now have bool rather than int flag arguments. Since bool is a
660 typedef of int and TRUE/FALSE have been redefined to true/false,
661 both source and object compatibility with older library versions
662 should be preserved.
663 * GAGetArgs(), used only in the utilities, now returns bool rather
664 than int.
665 * The undocumented GIF_LIB_VERSION symbol is gone from the library header.
666 It has been replaced with three documented symbols: GIFLIB_MAJOR,
667 GIFLIB_MINOR, and GIFLIB_RELEASE.
668
669 Retirements
670 -----------
671 * The gif2epsn and gif2iris utilities are gone. They were full of
672 platform dependencies for platforms long dead. There are enough
673 platform-independent GIF viewers in the world that these weren't
674 adding any value. Removing these gets rid of a dependency on GL.
675 * The rle2gif, gif2rle, and gif2ps utilities are also gone. There are enough
676 multiformat image converters in the world that these weren't adding
677 any value either. Removing them reduces the codebase's dependencies.
678 * The undocumented DumpScreen2Gif() is gone from the library. The
679 only non-obsolete capture mode it supported was through X, and that
680 probably hasn't been used in years and is replaceable by any number
681 of capture utilities. Dropping this code makes the library's
682 portability issues go away.
683 * QuantizeBuffer(), GifQprintf(), PrintGifError(), GIF_ERROR()
684 and GIF_MESSAGE() have been removed from the core library.
685 They were used only by the utilities. QuantizeBuffer() has been
686 inlined where it was used and the latter three are now part of the
687 utility support library.
688 * The Game Boy Advanced test code is gone. The platform was discontinued
689 in 2008; more to the point, nobody ever documented the code's assumptions
690 or expected results.
691 * The Changelog file is now retained for archival purposes only, and because
692 autotools throws a hissy fit if there isn't one. The single point of
693 truth about changes and the reasons for them is the repository history.
694
695 Behavior changes
696 ----------------
697 * The -q option of the utilities is replaced by an opposite -v (verbose)
698 option; the default is now quiet for all platforms. Defaulting to chattiness
699 on MSDOS made sense in a world of slow text consoles, but not today.
700
701 Testing
702 -------
703 * There is now a proper regression-test suite; run 'make' in tests/.
704 The old test-unx script is now tests/visual-check and can be run
705 occasionally for a check with the Mark One Eyeball.
706
707 Documentation
708 -------------
709 * Build instructions now live in build.txt
710 * An overview of the giflib API now lives in api.txt.
711 * Documentation is now in DocBook-XML, so either HTML or man pages can
712 be generated from it.
713
714 ==============================================================================
715
716 Version 4.1.6
717 =============
718 Brown paper bag release. Fix a problem with header inclusion that could
719 prevent the library from building on some platforms.
720
721 ==============================================================================
722
723 Version 4.1.5
724 =============
725 This version has some important fixes for segfaults when working with corrupt
726 files. All users are strongly encouraged to upgrade.
727
728 Code Fixes
729 ----------
730 * Fix segfault in utilities due to referencing ColorMaps in GifFiles that had
731 no ColorMap present.
732 * Fix gif2x11 to work on 24 bit displays.
733 * Fix for giftext segfault when the GifFile does not store a global colormap.
734 * Checks to fail gracefully when an image contains improper LZ codes.
735 * Close file handles on failure in DGifOpenFileHandle()
736 * Checks to operate on files in binary mode on WIN32 as well as MSDOS.
737
738 Building
739 --------
740 * Add checks to make building on Win32 easier.
741 * Allow turning off gl_s, rle, and X11 support from the configure command line.
742 * Fix for finding a 32 bit integer type on some platforms.
743 * Only enable -Wall if we're using gcc.
744
745 ==============================================================================
746
747 Version 4.1.4
748 =============
749 This version fixes some bugs with deallocating ColorMaps. Fix building on
750 several platforms. Fix x86_64 builds to not hang the encoder.
751
752 * Fix several areas in decoding where we removed a ColorMap from our GifFile
753 but didn't set the pointer to NULL. This could lead to double free's of
754 the ColorMap.
755 * Fix a bug in dev2gif.c where we redefined some gl types incorrectly.
756 * Fix a bug in the gif LZW encoder that was triggered on modern 64 bit
757 platforms.
758 * Fix building on Windows. Note -- there has been one API changing event for
759 Windows (renaming DrawText to DrawGifText.) This should have conflicted with
760 Windows API and therefore caused the builds to fail previously. If you had
761 it working with DrawText before, apologies, you'll need to change to
762 DrawGifText in your code. This only affects Windows.
763 * Add support for building on The Game Boy Advance. Note: Due to the GBA's
764 limited memory, the API for the GBA uses short's in many places where the
765 other platforms use ints. This shouldn't affect anyone unless you've
766 been able to get an older version of the code to run on GBA and want to
767 start using this version instead. A recompile of your dependent code
768 will be necessary in this case.
769
770 ==============================================================================
771
772 Version 4.1.3
773 =============
774 This version fixes some bugs in the Extension writing code in
775 EGifPutExtensionFirst, Next, and Last. Using these functions, it is possible
776 to output extensions that contain multiple subblocks. Additionally, library
777 code has been updated to use these functions, making it safe to output
778 long Comments, and multi-block extensions read in from another file.
779
780 * giflib is now hosted on sourceforge with libungif:
781 http://sourceforge.net/projects/libungif
782 * Make the EGifPutExtension{First,Next,Last} family of functions use WRITE
783 so user defined WRITE methods will output them correctly.
784 * Modify EGifSpew and EGifPutComment to use EGifPutExtension{First,Next,Last}
785 so we won't output broken GIFs when dealing with GIFs with multiple
786 subblocks.
787 * More -Wall fixes revealed while testing on Solaris and FreeBSD.
788 * Updated the gif_lib.html documentation to not use EGifPutExtension when
789 dealing with multiple subblocks. Use EGifPutExtension{First,Next,Last}
790 instead.
791 * Some Windows code from the old CVS repository now available in the windows
792 subdirectory. I don't have a Windows environment to test and maintain this
793 but maybe someone out there will find it useful. Caveat hacker.
794
795 ==============================================================================
796
797 Version 4.1.2
798 =============
799 * Numerous bug fixes from people on the old libungif mailing list.
800 * GIF_ERROR and GIF_MESSAGE are on the deprecation list as they are also
801 utility helper functions rather than essential to the functioning of the
802 library.
803 * Complete deprecation list is now in the README file
804 * Audited the sources with gcc -Wall. Everything detectable has now been fixed.
805 * Ran the library code through indent.
806
807 ==============================================================================
808
809 Version 4.1.1
810 =============
811 * Merge in many bug fixes that were sent in while I was hiking the
812 Appalachian Trail.
813 * The qprintf methods of the library are now deprecated. Do not use
814 GifQuietPrint or GifQprintf. These should have been pushed out into the
815 utility helper library instead of sitting around in the library proper at
816 the same time as the getarg functions were moved out. Getting rid of these
817 will let us get rid of our dependence on stdarg.h/varargs.h (Which a Gif
818 reading library has no business requiring.)
819
820 ==============================================================================
821
822 Version 4.1.0
823 =============
824 * Several minor memory leaks in error conditions have been plugged.
825 * New Function EGifOpen(void *userData, OutputFunc writeFunc) allows user
826 specified gif writing functions.
827 * Old copyright notices in a few source files have been updated. All library
828 copyrights should now reflect the copyright notice in the COPYING file.
829
830 ==============================================================================
831
832 Version 4.0.0 -- giflib
833 =======================
834 This version of the giflib library merges Eric Raymond's giflib-3.0 release
835 with the libungif-4.0 release to give people a binary compatible choice
836 between the two libraries and gives me the chance to add bugfixes to giflib
837 that have been incorporated in libungif.
838
839 PLEASE READ THE FILE PATENT_PROBLEMS BEFORE USING THIS LIBRARY!
840
841 ==============================================================================
842
843 Version 4.0.0
844 =============
845 Major fixes have been made to the code that handles Extensions.
846 Unfortunately, this causes binary incompatibility with giflib-3.0 and
847 libungif-3.x. However, the API is still intact. I am, however, deprecating
848 the use of saveImage[x].Function. Use
849 saveImage[x].ExtensionBlocks[y].Function instead.
850
851 ==============================================================================
852
853 Version 3.1.1
854 =============
855 The following bugs which caused SegFaults have been fixed:
856 * When reading gif files with extensions, DGifSlurp would violate memory.
857 * When closing a gif that had a local colormap, DGifCloseFile would attempt
858 to free the colormap twice.
859 * Fix a potential memory leak in DGifSlurp.
860 * New function DGifOpen to allow specifying a user definable gif reading
861 function.
862
863 ==============================================================================
864
865 Version 3.1.0
866 =============
867 * Add a new function:
868 GifFileType *DGifOpen(void * userData, InputFunc readFunc)
869 to read the gif image from a user defined input function.
870 * A few bugfixes.
871
872 ==============================================================================
873
874 Version 3.0
875 ===========
876
877 Changes from Eric Raymond's libgif
878 ----------------------------------
879 * A new gif encoder that makes uncompressed gifs rather than standard,
880 LZW-compressed gifs. This is actually the major motivating factor behind
881 libungif; to provide third-party distributors a means to provide a gif
882 library without the patented LZW encoder.
883 * A new configure script to make compilation of the library on multiple
884 platforms easier. The package should now build shared libraries on all
885 platforms supported by GNU libtool.
886 * Removed the getarg functions from libgif. These were not part of the
887 public API and only used by the tools in the utils directory so I separated
888 them from the rest of the library.
889 * Fixed a few bugs in the tools in the utils directory.
890
891 New features
892 ------------
893 * Incorporated Sirtaj Kang's changes to make both static and shared libs.
894 * All the utility and library docs are HTML now.
895 * The library and relevant utilities are now fully GIF89-aware.
896 * Functions for drawing text and boxes on saved images are documented.
897 * The distribution is now issued under a simple X-Consortium-style license.
898 * Can now generate package RPMs and LSM automatically.
899 * Home page with Web-acessible documentation at http://www.ccil.org/~esr/giflib
900
901 Bug fixes
902 ---------
903 * Fix giftext to not core dump on a null extension record.
904 * Incorporate Philip VanBaren's change to prevent a core dump in gifasm.
905
906 ==============================================================================
907
908 Version 2.3
909 ===========
910 * Fixed a core-dump bug in gifcomb revealed by ELF environment in Linux 1.2.13.
911
912 ==============================================================================
913
914 Version 2.2b
915 ============
916 * Added gifburst tool.
917
918 Version 2.2
919 ===========
920 * Linux is supported.
921
922 ==============================================================================
923
924 Version 2.1
925 ===========
926 * Added the gifovly tool, which supports making a composite from several GIF
927 images.
928 * Used gifovly to implement a full-fledged pasteup program in shell. It's
929 called gifcompose and lives in the util directory.
930 * Added a copy of the GIF89 standard to the doc directory (gif89.txt);
931 also a description of the preferred compression method (lzgif.txt).
932
933 ==============================================================================
934
935 Version 2.0
936 ===========
937 With this version, development was taken over from Gershon Elber by Eric
938 S. Raymond <[email protected]>. Note that I, esr, have pretty much
939 adhered to Gershon's coding style, even though it's quite baroque and DOS-
940 headed by my standards.
941
942 Library Improvements
943 --------------------
944 * New DGifSlurp() and EGifSpew() library entry points allow all GIF-bashing
945 to be done in core on machines with sufficient memory. Writing code to
946 slice'n'dice multiple GIFs in non-sequential ways is now much easier (send
947 kudos and brickbats to esr, small unmarked bills preferred).
948 * The interface has changed somewhat. Members in the GifFileType structure
949 have been renamed and regrouped. This was required for support of the
950 SavedImages member (which enables the new functions mentioned in 1). Also,
951 there is a new data type for allocated color maps and routines to handle
952 it conveniently.
953 * Some minor bugs have been fixed. Most notably, the DGif code now correctly
954 handles the possibility of more than one code block per extension record,
955 as per the GIF spec. It's not clear, however, that anyone ever has or
956 ever will use this feature for anything...
957
958 New Tools and Options
959 ---------------------
960 * A brand new, ultra-spiffy tool `icon2gif' is included. It assembles named
961 GIFs with editable text color map & icon raster representations to produce
962 multi-image GIFs usable as graphical resource files. It can also dump most
963 GIFs in the same text-only form it parses. This makes it easy to edit GIFs
964 even if you don't have a graphics editor.
965 * The gifclip utility supports a new `-c' (complement) option that allows you
966 to perform an `inverse clip', removing horizontal or vertical bands from an
967 image.
968 * The gifclrmp utility supports a new `-t' switch for shuffling color index
969 values.
970 * A new tool `gifcolor' generates test pattern from colormap input.
971
972 New Documentation and Examples
973 ------------------------------
974 * The documentation has been overhauled completely and translated out of the
975 dialect spoken by the estimable Mr. Elber into something like standard
976 English :-).
977 * Two source code files gifspnge.c and giffiltr.c have been added to the
978 util directory. These are GIF copiers that exercise the I/O routines,
979 provided as skeletons for your applications. Read the comments in them
980 for more info.
981 * The util Makefile for UNIX has been improved. It now uses the cc/gcc -s
982 option rather than strip(1). There are now separate install productions,
983 so you can test new versions in util before installation for production
984 (the top-level make script still does an install).
985
986 ==============================================================================
987
988 Version 1.2
989 ===========
990 * GIFFIX - a new tool to attempt and fix broken GIF images. Currently fix
991 images that has EOF prematurely by padding with the darkest color.
992 * Make GIF2BGI display as much as it can considering the mem. avail.
993 * Add -q flag to all tools for quite running scan line number mode.
994 * Fix a (minor!?) bug in the GIF decoder when encountering code 4095.
995 * New tools (RGB2GIF and GIF2RGB) to convert GIF to/from 24 bits RGB images.
996 * New tool GIFROTAT to rotate a gif image by an arbitrary angle.
997 * GifRSize was updated to resize by an arbitrary factor.
998
999 ==============================================================================
1000
1001 Version 1.1
1002 ===========
1003 * GIF2BGI - a new utility to display GIF images using Borland's BGI drivers
1004 (if you have one...)
1005 * TEXT2GIF - Converts plain text into GIF images.
1006 * GIF2IRIS - SGI4D display program for GIF images.
1007 * GIF_LIB naming convension has been modified to make sure it has unique
1008 names (see gif_lib.h).
1009 * Support for SGI4D gl and X11 window grabbing has been added to the
1010 library. SGI4D input is quantizied into 8 bits.
1011 Also support for EGA/VGA devices has been added as well.
1012 see Dev2gif.c module.
1013 * Support for the new gif89a format has been added.
1014
1015 ==============================================================================
1016
1017