Fabian Keil
2c6a3af9b6
loader_gif(): Abort gif parsing if DGifGetLine() fails
...
Prevents multiple conditinal jumps based on and uses
of unitinitialied memory when parsing fuzzed file
id:000067,src:000000,op:havoc,rep:4,+cov.
2014-12-06 13:50:24 +09:00
Fabian Keil
2a53f202fe
loader_gif: Don't read uninitilized memory in case of invalid input
...
Test file id:000037,src:000000,op:flip8,pos:73,+cov.
2014-12-06 13:50:24 +09:00
Fabian Keil
6e5d43617a
imlib_conv: Use proper buffer size to prevent invalid write of size one
2014-12-06 13:45:46 +09:00
Fabian Keil
c21beaf178
Prevent division-by-zero crashes
2014-12-06 13:45:46 +09:00
Heiko Becker
540df42aab
GIF loader: Fix for libgif version 5.1
...
Summary:
From giflib-5.1.0's NEWS:
"A small change to the API: DGifClose() and EGifClose() now take a
pointer-to-int second argument (like the corresponding openers)
where a diagnostic code will be deposited when they return
GIF_ERROR."
Test Plan:
I've built imlib2 against giflib-4.2.3 and 5.1.0 and opened a few
gif files with feh.
Reviewers: kwo
Reviewed By: kwo
Differential Revision: https://phab.enlightenment.org/D1529
2014-10-13 17:41:25 +02:00
Michał Górny
fb29e4bf8d
fix -I flags to support building out-of-source
...
When building out-of-source, the headers are located in subdirectories
in $(top_srcdir) rather than $(top_builddir). Adjust AM_CPPFLAGS
accordingly.
URL: https://bugs.gentoo.org/510522
2014-05-17 09:23:02 +02:00
Mike Frysinger
4f36e69934
do not link with X libs when X is disabled
...
URL: https://bugs.gentoo.org/517670
2014-07-28 23:01:23 -04:00
Mike Frysinger
cfa257c01f
fix X_DISPLAY_MISSING redefined warnings when X is disabled
...
This is set up in config.h by configure, so avoid defining it again.
2014-07-28 22:59:35 -04:00
Mike Frysinger
560a58e617
check return value of fread/write funcs
...
This fixes warnings with newer compilers/distros that enable warning
flags by default:
loader_zlib.c: In function 'uncompress_file':
loader_zlib.c:33:17: warning: ignoring return value of 'write',
declared with attribute warn_unused_result [-Wunused-result]
write(dest, outbuf, bytes);
^
2014-01-18 14:20:06 -05:00
Mike Frysinger
5dde234b2d
imlib2-config: delete old reference to @my_libs@
...
This was cleaned up a while ago, but this file was missed.
URL: https://bugs.gentoo.org/497894
2014-01-18 13:56:54 -05:00
Mike Frysinger
dfb9521e8c
simplify --enable-visibility-hiding handling
...
This also fixes the --disable-visibility-hiding flag so that it doesn't
turn visibility on.
2014-01-18 13:55:53 -05:00
Kim Woelders
39641e74a5
GIF loader: Fix segv on images without colormap.
...
Not sure what is the proper way to handle this.
For now we just fill the image with zeros.
2014-01-11 17:38:54 +01:00
Kim Woelders
b7ad34abbc
GIF loader: Simplify error handling.
...
Also:
- Fix memory leak when image data allocation fails.
- Some aux data arrays may as well be const.
2014-01-11 13:51:49 +01:00
Kim Woelders
6b24728fb8
Header file cleanups.
2013-12-22 05:10:44 +01:00
Kim Woelders
c10f5a4fa5
Remove empty format.c/h.
2013-12-22 05:10:44 +01:00
Kim Woelders
7e513f5b87
Remove OS/2 support.
...
Looks incomplete and unmaintained.
2013-12-22 05:10:44 +01:00
Kim Woelders
1df8defbaa
GIF loader: Fix for libgif version 5.
2013-12-22 05:10:43 +01:00
Kim Woelders
31af56a040
1.4.6.
2013-12-21 13:41:59 +01:00
Kim Woelders
ce0c14be10
Remove ChangeLog and obsolete rule to generate it.
2013-12-21 12:50:07 +01:00
Kim Woelders
df2c80ed07
Simplify some more and fix certain case of cpp > 2.
2013-08-05 14:38:38 +02:00
Kim Woelders
0d7f851f25
Cosmetics (reduce deep indentation level).
2013-08-04 19:58:33 +02:00
Kim Woelders
4a8aa48317
Deuglification.
2013-07-07 20:36:18 +02:00
Kim Woelders
db33b8c6a1
Indent.
2013-07-07 20:36:18 +02:00
Kim Woelders
fe82b9760c
Autofoo updates.
...
- Eliminate deprecated AC_TRY_CPP.
- Use pkg-config in stead of freetype-config to get freetype info.
- Eliminate my_includes/my_libs.
- Clean up include paths.
2013-07-07 20:35:29 +02:00
Kim Woelders
e81eec2961
Don't set -std=gnu99.
...
Should not be needed since round() was implemented as macro.
2013-07-05 18:44:11 +02:00
Kim Woelders
842b550233
More warning fixes (64 bit).
2013-07-05 18:44:11 +02:00
Kim Woelders
306f42e0bd
Silence compiler warnings (filters).
2013-07-03 16:57:04 +02:00
Kim Woelders
357852ebb9
Silence compiler warnings (loaders).
2013-07-03 16:53:21 +02:00
Kim Woelders
0c647a7f24
Silence compiler warnings (lib).
2013-07-03 16:51:22 +02:00
Kim Woelders
6e41fe2e1a
Set warning options when using gcc.
2013-07-03 15:07:51 +02:00
Kim Woelders
41dc2bb98b
Update .gitignore.
2013-07-02 16:37:49 +02:00
Kim Woelders
4f94a524b9
Update configure.ac (mostly suggestions by autoupdate).
2013-07-02 16:08:53 +02:00
Kim Woelders
7514ec5276
Minor optimisation (avoid bogus valgrind complaint).
2013-07-02 09:00:37 +02:00
Kim Woelders
ad756ccacf
Cosmetics for readability.
2013-07-02 08:57:04 +02:00
Kim Woelders
eee318461d
Fix drawing of closed polygons in certain situations (ticket 2309).
...
Drawing of the closing line could be skipped depending on the specific
vertex coordinates (and order).
Can't say that I undestand the code completely but this change seems
to fix the problem, and I don't think it can cause trouble.
2013-03-24 20:28:31 +01:00
Kim Woelders
d943d1ebea
Change INCLUDES to AM_CPPFLAGS.
...
INCLUDES is deprecated.
2013-03-24 20:28:31 +01:00
Cedric BAIL
b88a36e6fd
trunk: remove use of AM_PROG_CC_STDC as AC_PROG_CC does it.
...
Patch by Doug Newgard <scimmia22@outlook.com>
SVN revision: 82148
2013-01-04 05:49:26 +00:00
Cedric BAIL
6d19254b4f
autotools: move to AC_CONFIG_HEADERS.
...
Patch by Doug Newgard <scimmia22@outlook.com>.
SVN revision: 82135
2013-01-04 00:55:00 +00:00
Kim Woelders
a115ba3645
TGA loader: Fix for corrupt RLE format.
...
Patch by Matias Garcia/Ross Video.
SVN revision: 76919
2012-09-20 18:04:06 +00:00
Kim Woelders
12a35d6bae
Update ChangeLog.
...
SVN revision: 62487
2011-08-15 19:34:10 +00:00
Kim Woelders
d41d57003a
1.4.5.
...
SVN revision: 62486
2011-08-15 19:30:41 +00:00
Kim Woelders
ebb62b7521
Avoid referencing /usr/X11R6 when x_dir is not set.
...
... which normally it will not be, AFAICT.
SVN revision: 58696
2011-04-15 22:04:59 +00:00
Kim Woelders
8169598a08
Fix program linking (ticket 725).
...
SVN revision: 58695
2011-04-15 22:04:56 +00:00
Kim Woelders
4b12b9e154
PNM loader: Refactor around progress and exits.
...
SVN revision: 58520
2011-04-09 09:24:51 +00:00
Kim Woelders
de93dc7e22
Fix loading of .pbm's (P4) when width is not a multiple of 8.
...
SVN revision: 58519
2011-04-09 09:24:48 +00:00
Kim Woelders
41c3a967d0
Indent (most) .c files.
...
SVN revision: 58518
2011-04-09 09:24:44 +00:00
Kim Woelders
4c55d2c3f6
Better image cache time stamp test.
...
SVN revision: 57918
2011-03-20 17:19:02 +00:00
Kim Woelders
a1a018317a
Fix pnm image loading in certain situations (ticket 721).
...
"It fails with "large" images, written with multiple pixels on the same line."
Patch by quentin.stievenart@gmail.com
SVN revision: 57697
2011-03-11 21:13:19 +00:00
Mike Frysinger
5983044ae4
png loader: do not hit "interlaced" member of the png ptr struct
...
this should work with libpng 1.[245].x ... did not check anything older than that though
patch by Thomas Klausner
SVN revision: 57171
2011-02-19 19:33:58 +00:00
Mike Frysinger
d594895dba
png loader: use png_jmpbuf() macro rather than hitting jmpbuf directly
...
this should work with libpng 1.[245].x ... did not check anything older than that though
patch by Thomas Klausner
SVN revision: 57170
2011-02-19 19:23:57 +00:00