TransRead: fix a MemoryError issu
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 17 Jan 2013 09:08:01 +0000 (11:08 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Thu, 17 Jan 2013 09:08:01 +0000 (11:08 +0200)
commitdefeb319d84b97e55c66a6c91e045d597411fadd
tree8325f2a1ce3ea8c4fd4ee57a5ebac9ac65175971
parent0015ac3419cce8bf4dd540324c8196278f95de68
TransRead: fix a MemoryError issu

Sometimes we run out of memory in TransRead.py, as it was reported by
Dawei Wu <daweix.wu@intel.com>. I believe the problem is that we read too much
of compressed data at a time. If the data contain all zeroes, they are
decompressed into a huge buffer.

Change-Id: I4090cef33dd1afed1015bd29517ac1b8abec9ffa
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptools/TransRead.py