[Zodb-checkins] CVS: ZODB3/ZODB - fspack.py:1.7
Jeremy Hylton
jeremy at zope.com
Tue May 20 16:33:00 EDT 2003
Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv22958
Modified Files:
fspack.py
Log Message:
Use longs to guard against overflow.
Reported by Sidnei da Silva.
=== ZODB3/ZODB/fspack.py 1.6 => 1.7 ===
--- ZODB3/ZODB/fspack.py:1.6 Fri May 16 16:19:15 2003
+++ ZODB3/ZODB/fspack.py Tue May 20 15:33:00 2003
@@ -77,7 +77,7 @@
# subclasses must provide _file
- _metadata_size = 4
+ _metadata_size = 4L
_format_version = "21"
def _read_num(self, pos):
@@ -464,7 +464,7 @@
del self.oid2curpos
def buildPackIndex(self):
- pos = 4
+ pos = 4L
while pos < self.eof:
th = self._read_txn_header(pos)
if th.tid > self.packtime:
More information about the Zodb-checkins
mailing list