and use it to validate decoder allocations. fixes a crash in jpegdec at least. BUG=webp:312 Change-Id: Ia940590098f29510add6aad10a8dfe9e9ea46bf4
Change-Id: I2508c786a095a2a75bebf766210c64e2af88f9b6