Go to file
Yuriy M. Kaminskiy 7eba2e4c8a Fix integer overflow resulting in insufficient heap allocation
IMAGE_DIMENSIONS_OK ensures that image width and height are less then
46340, so that maximum number of pixels is ~2**31.

Unfortunately, there are a lot of code that allocates image data with
something like

   malloc(w * h * sizeof(DATA32));

Obviously, on 32-bit machines this results in integer overflow,
insufficient heap allocation, with [massive] out-of-bounds heap
overwrite.
Either X_MAX should be reduced to 32767, or (w)*(h) should be checked to
not exceed ULONG_MAX/sizeof(DATA32).

Security implications:
*) for 32-bit machines: insufficient heap allocation and heap overwrite
in many image loaders, with escalation potential to remote code
execution;
*) for 64-bit machines: it seems, no impact.
2016-04-09 14:54:46 +02: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 Fix integer overflow resulting in insufficient heap allocation 2016-04-09 14:54:46 +02: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.8. 2016-03-12 08:50:32 +01: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.8. 2016-03-12 08:50:32 +01: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.