Photonios/pyasar

Bug

Opened this issue · 0 comments

There is a bug in the __extract_file routine. This line....

contents = self.asarfile.read(
self.__absolute_offset(fileinfo['size'])
)

should be...

contents = self.asarfile.read(
int(fileinfo['size'])
)

The read should just take the number of bytes, the line just above this already seeks to the proper position in the file using the __absolute_offset.