iiab / internet-in-a-box

Humane Heritage - OLD VERSION
Other
104 stars 16 forks source link

read_cluster_pointer can sometimes return incorrect size #61

Closed omwah closed 11 years ago

omwah commented 11 years ago

The routine read_cluster_pointer in zimpy.py can sometimes return incorrect sizes. According to the zimlib source the correct way to get the size of a blob is to read all the offset pointers and look at difference in those indexes. This of course will require uncompressing the cluster records if they are compressed.