Subject: | TIFF code casts the io_layer handler function pointers |
Date: | Sun, 31 Jul 2011 12:42:00 +1000 |
To: | bug-Imager [...] rt.cpan.org |
From: | tonyc [...] cpan.org |
This is unsafe:
tif = TIFFClientOpen("(Iolayer)",
"rm",
(thandle_t) ig,
(TIFFReadWriteProc) ig->readcb,
(TIFFReadWriteProc) ig->writecb,
(TIFFSeekProc) comp_seek,
(TIFFCloseProc) ig->closecb,
ig->sizecb ? (TIFFSizeProc) ig->sizecb : (TIFFSizeProc) sizeproc,
(TIFFMapFileProc) comp_mmap,
(TIFFUnmapFileProc) comp_munmap);