-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Op 24-09-10 04:26, Scott Crosby schreef: > What was the problem and the fix?
The problem was that I assumed that after a succesful inflate nothing in my inflate buffer could have gone wrong. But I was actually placed on the end of that buffer. So basically protobuf pretends everything is 'ok' and just starts parsing. So the fix was just nicely to pass the start of the inflated data. I was coding quite defensive, but it seems protobuf itself still 'eats' memory. Given the presented 'max 64MB limits', not really an issue, but it is just duplicating a lot of memory, instead of using pointers to the input arrays. For whats worth, currently I'm able to decode the 'fileformat', doing deflate decompression. So still some stuff to go, but I understand the basics now... so I'm a happy farmer. Stefan -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEAREKAAYFAkycE98ACgkQYH1+F2Rqwn2svwCghj5x+u77Dg6ZIO1Fb9IdP/4l jMUAn1Irj/uLFzdESAZMQ/MnJ8X/oQHO =9QVf -----END PGP SIGNATURE----- _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

