path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* LZW decoder: Slight code clarity and comment improvement.Michael Drake2017-04-061-2/+4
* LZW decoder: Squash scan-build error by adding assert.Michael Drake2017-04-051-0/+3
| | | | | | | Note, for scan-build to correctly interpret the assert, the library must be built in debug mode: $ scan-build-4.0 make VARIANT=debug
* New LZW decoder: Real-world fix; continue after dictionary is full.Michael Drake2017-04-053-16/+13
* GIF decoding: Remove old LZW decoder and port library to new implementation.Michael Drake2017-04-052-326/+45
* New LZW decoder: Add client calls to initialise LZW, and perform decode.Michael Drake2017-04-052-0/+250
* New LZW decoder: Add client calls to create/destroy LZW contexts.Michael Drake2017-04-042-0/+52
* New LZW decoder: Routine to extract LZW codes from GIF sub-block sequences.Michael Drake2017-04-042-0/+177
* Remove pointless current_error from API surface.Michael Drake2017-02-061-1/+0
* Don't pass gif structure into lzw decoder.Michael Drake2017-02-061-50/+78
* isolate LZW initialisationVincent Sanders2017-01-301-14/+25
* remove use of magic number for header sizeVincent Sanders2017-01-301-1/+1
* make the mast table read only data in the only place it is usedVincent Sanders2017-01-271-10/+31
* remove forward declarationsVincent Sanders2017-01-271-133/+129
* fix the colour table size check to be correctVincent Sanders2017-01-271-1/+3
* fix buffer overrun due to LZW code clearingVincent Sanders2017-01-271-2/+14
| | | | | | The LZW code clearing function was not dealing with errors when obtaining the next code from the gif. this resulted in input buffer overruns and occasional segmentation faults.
* move lzw parameters to a structVincent Sanders2017-01-271-212/+234
| | | | | | Make all the lzw parameters members of a structure instead of being random globals. This allows for a future change to making the library safe when decompressing multiple GIF.
* when searching previous frames for disposal type stay in boundsVincent Sanders2017-01-251-6/+10
| | | | | | | | When searching back through frames looking for a non restore frame disposal type the array index would go out of bounds off the front of the frames block causing a segfault. Fixes issue #2515 reported in bugtracker
* remove global clear_image flag and pass values insteadVincent Sanders2017-01-251-223/+239
* Add doxygen config and update formatting and doc commentsVincent Sanders2017-01-241-1215/+1235
* Ensure code is valid before use.John-Mark Bell2015-11-211-2/+4
| | | | Issue-reported-by: Hans Jerry Illikainen
* Ensure LZW decode stack does not overflow.John-Mark Bell2015-11-211-0/+17
| | | | Issue-reported-by: Hans Jerry Illikainen
* Improve checks for data buffer exhaustionJohn-Mark Bell2015-11-211-8/+22
* Fix up scan-build: "Result of 'calloc' is converted to a pointer of type ↵Michael Drake2013-04-111-2/+2
| | | | 'unsigned int', which is incompatible with sizeof operand type 'int'".
* Put semicolon for bodyless while loop on new line. Remove confusing ↵Michael Drake2013-04-111-15/+17
| | | | indentation.
* Update to new NSBUILD infrastructureDaniel Silverstone2012-06-291-1/+1
| | | | svn path=/trunk/libnsgif/; revision=14009
* Fix palette entry population some more. Hopefully, it's completely endian ↵John Mark Bell2009-08-091-13/+33
| | | | | | agnostic now and still builds with GCC 4.4 svn path=/trunk/libnsgif/; revision=9138
* Stop utterly insane palette entry population.John Mark Bell2009-08-031-10/+15
| | | | | | | Palette entries are always ABGR, regardless of platform endianness. This change probably breaks big-endian platforms which, under the old approach, had palette entries of the form RGBA (assuming I understood the code correctly). svn path=/trunk/libnsgif/; revision=9027
* Squash warnings. The way that palette entries are computed makes me cry. ↵John Mark Bell2009-03-291-4/+4
| | | | | | Please do this properly. svn path=/trunk/libnsgif/; revision=6984
* First cut at a port to the core buildsystemJohn Mark Bell2009-03-293-0/+1285
svn path=/trunk/libnsgif/; revision=6983