Go to file
Tobias Stoeckmann fe7ae79084 Prevent OOB read with large file support on 32 bit
If imlib2 is compiled with large file support on 32 bit systems, which
is not the default, the TGA loader is vulnerable to an out of boundary
read due to insufficient off_t/size_t validations.

If large file support is enabled, off_t is 64 bit, while size_t is the
regular 32 bit on 32 bit architectures. Casting directly leads to issues
with files which are larger than 4 GB.

As it's unlikely to encounter such files, they will be simply ignored
on such systems.

64 bit systems are not affected.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2017-03-25 07:21:49 +01:00
data Remove .cvsignores. 2010-03-14 15:25:09 +00:00
doc Remove .cvsignores. 2010-03-14 15:25:09 +00:00
m4 Enable visibility hiding by default. 2014-12-20 10:35:28 +01:00
src Prevent OOB read with large file support on 32 bit 2017-03-25 07:21:49 +01:00
.gitignore Set warning options when using gcc. 2013-07-03 15:07:51 +02:00
.indent.pro Add indent profile. 2007-05-20 13:24:59 +00:00
AUTHORS Add a Farbfeld loader 2016-02-07 08:01:40 +01:00
COPYING fix the copying license to 2009-01-13 13:00:45 +00:00
COPYING-PLAIN Fix common misspellings 2010-09-09 03:31:04 +00:00
ChangeLog 1.4.9. 2016-04-29 19:29:37 +02:00
Doxyfile Update doxy style 2007-12-06 18:17:21 +00:00
INSTALL fix install 2004-11-02 03:30:28 +00:00
Makefile.am Add compile to MAINTAINERCLEANFILES. 2015-11-01 15:17:56 +01:00
README.ID3 Added documentation for tag id3-link-url 2005-08-22 09:50:50 +00:00
README.in auto-package imlib2... 2005-03-03 14:28:52 +00:00
TODO Fix common misspellings 2010-09-09 03:31:04 +00:00
autogen.sh Set warning options when using gcc. 2013-07-03 15:07:51 +02:00
configure.ac 1.4.9. 2016-04-29 19:29:37 +02:00
gendoc Update doxy style 2007-12-06 18:17:21 +00:00
imlib2-config.in imlib2-config: delete old reference to @my_libs@ 2014-01-18 13:56:54 -05:00
imlib2.c.in Fix common misspellings 2010-09-09 03:31:04 +00:00
imlib2.pc.in don't _require_ freetype2 2007-03-22 20:52:41 +00:00
imlib2.spec.in Add a Farbfeld loader 2016-02-07 08:01:40 +01:00

README.in

Imlib2 @VERSION@

This is the Imlib 2 library - a library that does image file loading and
saving as well as rendering, manipulation, arbitrary polygon support, etc.

It does ALL of these operations FAST. Imlib2 also tries to be highly
intelligent about doing them, so writing naive programs can be done
easily, without sacrificing speed.

This is a complete rewrite over the Imlib 1.x series. The architecture is
more modular, simple, and flexible. See index.html in the doc/ directory
for more information.

Imlib2 requires several libraries to be already installed. These are:

libjpeg          http://www.ijg.org/
libpng           http://www.libpng.org/pub/png/libpng.html
freetype 2.1.x   http://www.freetype.org/

For examples of this library in use, seek:

Eterm            http://www.eterm.org/ (CVS version only, currently)
feh              http://www.linuxbrit.co.uk/feh.html
geist            http://www.linuxbrit.co.uk/geist.html

------------------------------------------------------------------------------
COMPILING AND INSTALLING:

  ./configure
  make
(as root unless youa re installing in your users directories):
  make install
      
------------------------------------------------------------------------------
BUILDING PACKAGES:

RPM: To build rpm packages:
  
  sudo rpm -ta @PACKAGE@-@VERSION@.tar.gz

You will find rpm packages in your system /usr/src/redhat/* dirs (note you may
not need to use sudo or root if you have your own ~/.rpmrc. see rpm documents
for more details)

DEB: To build deb packages:

  tar zvf @PACKAGE@-@VERSION@.tar.gz
  cd @PACKAGE@-@VERSION@
  dpkg-buildpackage -us -uc -rfakeroot
  cd ..
  rm -rf @PACKAGE@-@VERSION@

You will find all the debian source, binary etc. packages put in the directory
where you first untarred the source tarball.