summaryrefslogtreecommitdiffstats
path: root/generic/tkImgGIF.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed broken trunk caused by "signed/unsigned mismatch" compiler error on ↵fvogel2015-06-011-2/+2
| | | | | Windows, introduced by [4fe3c06b97] and [07622d5618] FossilOrigin-Name: 21ea6c1fe5bfd6aec78028270a81c357fbd5ad4e
* [dece631375] More mem alloc overflow check and init with proper unsigneds.dgp2015-05-201-2/+13
| | | FossilOrigin-Name: 4fe3c06b9704ae50819d24e7473781092d1dd1b2
* Initialize memory to stop valgrind notices about conditionals dependent ondgp2015-05-201-0/+7
| | | | | reads from uninit memory. FossilOrigin-Name: d1e3a3de43db5b4eafc0c0c3fbc85de34fc0bbfb
* more places convertedjan.nijtmans2013-01-241-1/+1
| | | FossilOrigin-Name: 2d21003b2562cbaed99e61f022a567082c598f3c
* Merge core-8-5-branchjan.nijtmans2013-01-241-2/+2
|\ | | | | | | | | Various Tcl_GetIndexFromObj -> Tcl_GetIndexFromObjStruct changes. FossilOrigin-Name: 472e3798d1c835e41e6f42f189ae802a61971a4d
* | Much more cleaning up of result handling.dkf2012-07-231-33/+36
| | | | | | FossilOrigin-Name: 016ad9dac31d39cbc9ded6a6e8e75c11618318a8
* | Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-0/+20
| | | | | | | | | | ** WORK IN PROGRESS ** FossilOrigin-Name: 6f8f9336c381b81bbe323a8399eaf4dd3f89b34f
* | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ | |/ | | FossilOrigin-Name: b8a1385217cc117d6962c234f0a4d28ff10e089c
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ | | | | | | FossilOrigin-Name: 3f95fbe0ce14948fd409844b915c18ef25d7d0a0
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | | | | | | | | FossilOrigin-Name: a74f32bb6369d3e66e661145c81a98a14ed79b3a
| | * * generic/tkImgGIF.c: Fixed a buffer overflow (CVE-2006-4484).rmax2008-02-011-1/+7
| | | | | | | | | | | | | | | | | | * tests/imgPhoto.test: Added a test for the above. FossilOrigin-Name: fb40595a088937ee93e4572b98f7787e3e4461a3
| | * * generic/tkImgGIF.c: Fixed a buffer overrun that got triggered byrmax2007-09-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | multi-frame interlaced GIFs that contain subsequent frames that are smaller than the first one. * tests/imgPhoto.test: Added a test for the above. FossilOrigin-Name: 8c92a336d05efa1b4aed740e93f262aeb7abd050
| | * Fix (and add test for) [Bug 1458234]dkf2006-03-271-14/+14
| | | | | | | | | FossilOrigin-Name: 59b08c01dd74c00888f0a2d24685221e424aa8fa
| | * * generic/tkImgGIF.c: cast calls to block_outhobbs2005-12-011-3/+3
| | | | | | | | | FossilOrigin-Name: 06966646168f56399a7cf36e9309a70e1677d5fc
| | * Plug a buffer overflow in the GIF readerdkf2005-06-201-22/+33
| | | | | | | | | FossilOrigin-Name: 631e580424e5a395e5269586649a17b15059f183
| | * * generic/tkImgGIF.c (FileReadGIF): fix crash reported by Reinhard Max:das2004-07-271-4/+5
| | | | | | | | | | | | | | | | | | | | | in case of premature end of image data, return error instead of passing nil buffer to Tk_PhotoPutBlock(). FossilOrigin-Name: b4fb499b89f508459d9d3d7324463dff43c323a7
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-6/+6
| | | | | | | | | | | | | | | using useful casts internally. FossilOrigin-Name: 142e016e7b17277d81257da90477297eb9aaa05a
* | | * generic/tkImgGIF.c (StringWriteGIF): Added ability to write a GIF todkf2010-07-181-318/+370
| | | | | | | | | | | | | | | | | | | | | | | | a string (as a byte array, of course) following comments on c.l.t by Aric Bills. Also improved readability of some of the function and field names in this file. FossilOrigin-Name: 0c405ec30a2eb72407163618553c05568570942b
* | | Formattingnijtmans2010-04-231-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | typo fixes remove not existing tkDisplayList; Useless re-definitions of TCL_STORAGE_CLASS FossilOrigin-Name: f24475f035844b1ee4f62efe7b34d31f47aa9aa9
* | | fix more gcc warnings: missing initializernijtmans2010-01-181-1/+2
| | | | | | | | | | | | | | | | | | | | | Apply patch [#2932808]: Canvas items not updating on widget state change FossilOrigin-Name: 2f69e1bce26ca36b0ad60946c5d2d5ed4e2c5f05
* | | Add "const" to many internalnijtmans2008-10-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries. FossilOrigin-Name: da3819dbb53904a418b6098f3b103df483c53304
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-148/+177
| | | | | | | | | FossilOrigin-Name: ddfd8bb6f7ecfa71a218a5dc88075a419e3e1d5c
* | | Let the GIF writer use a real LZW compressor.nijtmans2008-04-091-444/+321
| | | | | | | | | FossilOrigin-Name: fbaf561cc51696de328cca2fe37a3e5368913738
* | | a little cleanup, in preparation for replacing the gif compressor with a ↵nijtmans2008-04-091-92/+85
|/ / | | | | | | | | real LZW one. FossilOrigin-Name: 45100f26e2592eb37690c7f12122ca7945184a00
* | * generic/tkImgGIF.c: Fixed a buffer overflow (CVE-2006-4484).rmax2008-02-011-1/+7
| | | | | | | | | | | | * tests/imgPhoto.test: Added a test for the above. FossilOrigin-Name: 7d63efe980ee4d45fea4566560de7ad6e6c3c13a
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: e7868b44c1e7bffc63a053b87a96a4499757f80d
* | fix warningsdas2007-09-181-3/+3
| | | | | | FossilOrigin-Name: 714a48504342076a053f85df1dd4c86d8c5938d2
* | Yet another step in the tidying up of the GIF code.dkf2007-09-181-138/+169
| | | | | | FossilOrigin-Name: 8d114a1ee37e8173c54980ae823c1b83d8a7ad67
* | * generic/tkImgGIF.c: Fixed a buffer overrun that got triggered byrmax2007-09-111-2/+2
| | | | | | | | | | | | | | | | | | multi-frame interlaced GIFs that contain subsequent frames that are smaller than the first one. * tests/imgPhoto.test: Added a test for the above. FossilOrigin-Name: 865f831b965f75ae2d7730227cc01da78e4bf5d9
* | header cleanupdgp2007-09-071-2/+1
| | | | | | FossilOrigin-Name: 04ffea40ef0b3c0cad59a3e1576275019f29e913
* | Quell type-punning warnings from gcc/unix builddkf2007-01-121-5/+5
| | | | | | FossilOrigin-Name: 6dc8f9ef86b1d2a17a77267d21fcc35827316878
* | Many minute fixes to reduce number of minor warnings from GCC.dkf2007-01-111-10/+12
| | | | | | FossilOrigin-Name: 07047209ee3fabf64df75844ccc749416e247cd7
* | * generic/tkImgGIF.c (ReadImage):das2006-07-201-3/+3
| | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXCursor.c (TkMacOSXCursor): * macosx/tkMacOSXDebug.c (TkMacOSXGetNamedDebugSymbol): * macosx/tkMacOSXInit.c (Map): * xlib/xgc.c (XCreateGC): fix signed-with-unsigned comparison and other warnings from gcc4 -Wextra. FossilOrigin-Name: 694dad4d22e029cbeca839f6be045a29d673e3d8
* | Fix (and add test for) [Bug 1458234]dkf2006-03-271-13/+13
| | | | | | FossilOrigin-Name: 057f364ddff1f7ff992ef835c8738ceb3ab533e0
* | * generic/tkImgGIF.c: cast calls to blockOuthobbs2005-12-011-3/+3
| | | | | | FossilOrigin-Name: 13f3c03c0d427c0a1bc94803a7c0bc3a57a8f638
* | ANSIfy and reduce casting of NULL to promote readabilitydkf2005-11-171-201/+190
| | | | | | FossilOrigin-Name: b6c2c77cac3cacef0e58af5c6be63af4359a2949
* | Getting more systematic about styledkf2005-08-101-131/+162
| | | | | | | | | | | | | | Also start removing _ANSI_ARGS_; the core's required ANSI C for a while now Also fix [Bug 1252702]; size_t doesn't mix with Tcl_GetStringFromObj FossilOrigin-Name: 95ed0f915e157968e866e731484ea64d379250ec
* | Typosdkf2005-06-191-5/+5
| | | | | | FossilOrigin-Name: 6727702c5666cc9375601d90546926ae3670ac0c
* | Get rid of statics; replaced with stack-allocated structures which are ↵dkf2005-06-191-657/+723
| | | | | | | | | | | | | | | | automatically thread-safe. Also squelched a buffer overrun in binary string data handling... FossilOrigin-Name: a9d828fe42b5f82cc8912f0a6c31f5ecdefb9647
* | * generic/tkImgGIF.c (FileReadGIF): fix crash reported by Reinhard Max:das2004-07-271-4/+5
| | | | | | | | | | | | | | in case of premature end of image data, return error instead of passing nil buffer to Tk_PhotoPutBlock(). FossilOrigin-Name: d64990cb48173046d8a48e8e565c687a036392b7
* | TIP#116 implementation. Docs still to come, tests will never be done becausedkf2003-03-061-4/+9
|/ | | | | | | they could never be done portably as they'd inevitably depend on the total amount of memory available to the process... :^( FossilOrigin-Name: 1839ce25d99a4ffe34d8d8d47c74dcd5447694f9
* Removed pointless static variable ZeroDataBlock from tkImgGIF.c [Bug #664788]dkf2003-02-201-5/+1
| | | | | | It served no useful purpose whatsoever... FossilOrigin-Name: 619210d9dfb1a02df90225ef3291c222579c088f
* * generic/tkImgGIF.c (FileReadGIF): Ensure that the trashBuffer isdkf2003-02-181-9/+13
| | | | | | always deallocated on function exit to stop a potential memory leak. FossilOrigin-Name: e8d1555cacdd77f35ca4e46ca87ef5771f1401af
* * generic/tkImgGIF.c (FileReadGIF): fixed -from handling for gifshobbs2002-08-081-5/+5
| | | | | | [Bug #467524] (obermeier) FossilOrigin-Name: ae52de43a45770b4574fa971566615f4051fcd5e
* TIP#98 implementation; improved photo image copy and GIF frame accessdkf2002-06-141-2/+3
| | | FossilOrigin-Name: 7084752cc1be137e6ef4ba7d6d4bf201c05a6f32
* tkImgGIF.c was not following the Tcl C style; fixed...dkf2002-02-191-571/+676
| | | FossilOrigin-Name: ec11486cf6e65c0179eb76f99e8cf8bc360f7425
* * Updates to handle change in type of tablePtrdgp2002-01-171-2/+2
| | | | | | | argument of Tcl_GetIndexFromObj(Struct) from (char **) to (CONST char **). [TIP 27] [Patch 504705] FossilOrigin-Name: 85e5c7aa1baa3bd2b7bdb971f3cf83f4f5573723
* * generic/tkImgGIF.c:andreas_kupries2001-09-141-1/+2
| | | | | | | | | | | * generic/tkImgPPM.c: * generic/tkImgPhoto.c: * generic/tkMenu.c: Applied patch [461578], provided by Vincent Darley. This fixes several memory leaks in the image code. They happen if there are errors during the initialization of the channel the image is supposed to be read from. FossilOrigin-Name: 9c9ecdc7b9cdd4df094b1ac9ebcd4d9828752d46
* * generic/tkImgGIF.c (Mgetc): corrected screwy use of ternaryhobbs2001-07-031-2/+3
| | | | | | operator and possible FMR. FossilOrigin-Name: cd61f88f766b6d619fc26a1fed396ff4ac95dae2
* * tests/imgPhoto.test: Added test for GIF writing code [Bug: 5823].ericm2000-07-051-47/+28
| | | | | | | * generic/tkImgGIF.c: Applied patch from Jan Nijtmans to fix a problem with the GIF writing code [Bug: 5823]. FossilOrigin-Name: 10d0025167a231a05086106d86221eeae637ae2e