Add memory reading functions
commitb6df5fca4d4d9cdc4e6f57902a646e2aac905f0b
authorJames Le Cuirot <chewi@aura-online.co.uk>
Tue, 27 May 2014 20:39:00 +0000 (27 21:39 +0100)
committerJames Le Cuirot <chewi@aura-online.co.uk>
Sun, 1 Jun 2014 21:58:59 +0000 (1 22:58 +0100)
tree90b690285ec4adb389637136ccad2ec905853ef5
parentc8f5a41181a02168ad0656e0232506baa7029c00
Add memory reading functions

Taken and reworked from Aquaria. Most of the credit must be given to
"False Genesis" <false.genesis@googlemail.com> who originally wrote
this. I just refactored it, resulting in much less code duplication
and also ensured that the fixes for CVE-2010-1519 still hold.
include/GL/glpng.h
src/glpng.c