valgrind+afl: check p1 at start of loop

Change-Id: I9ef947d9a9089f2bcf6c86711f10224a03abf394
valgrind+afl: initialize cSize

Change-Id: Ia1b553fed82645023c28467b837b51bd959adbbe
valgrind+afl: short read

Change-Id: I8165ac1b1ff17bf8165319b21c2a5cf595f75f36
valgrind+afl: initialize nFlags

Change-Id: I3543f7f6616b6f400a74930fd998e4d517f56afa
valgrind+afl: short read

Change-Id: I48fe6550c07c1b3d6b1099fd27f8c21427e37601
valgrind+afl: short read

Change-Id: I4e78a434e4e49b376864549f7b96ca515eb1654a
coverity#982189 Unchecked return value

Change-Id: I6f5ef42b38236ea5f70ddbccfa25a81f2f3e976c
coverity#1187642 Unchecked return value

Change-Id: I6b96ef79d0996e5b783d27c4da8e45ddeac5c7ab
coverity#735344 Unchecked return value from library

Change-Id: I6dbb5ce74225e092d4098174fd4b53aa8c4201fa
valgrind+afl: bad rle

Change-Id: I0a9e5fc88ed1fcc7f1bd21218cabeb0adf65c9f4
ditch this unused idpool horror

Change-Id: I527b310126518357f9830f75d16b4848c9383999
sal_uIntPtr->sal_uInt32 for BitSet

because this ancient horror expects a 32bit type here

Change-Id: Icf8b775ea67afa0ead559a55b8c335ad1afc4010
coverity#735490 reimplement bit counting

with a classic solution rather than a bizarro one that
confuses coverity

Change-Id: Id9427a47693897683193c0c778f0cd6c39740f6f
valgrind: logic for last-ditch svg detection is busted

bIsGZip was never set, and the condition that uses it is additionally inverted

Change-Id: I0496bb27435c4323d74c1b99467d3ede68e7bee6