Is there something like this for formats other than ZIP like jpeg or pdf?
Idk, but there's an interesting project, wuffs: a programming language specifically aimed at efficiently and safely parsing document structure. There is a PNG decoder [2].
Is there something like this for formats other than ZIP like jpeg or pdf?