Fix a bug in ZoneCompactor that meant the zonetab offset was wrong.
Bug: 8391426 Change-Id: Ia4a8889b5a613aa96bb3fb5d89a921c913ff7626
This commit is contained in:
parent
f861bc5cc3
commit
af7f2f2fcf
|
@ -198,6 +198,8 @@ public class ZoneCompactor {
|
|||
// Write the data.
|
||||
f.write(allData.toByteArray());
|
||||
|
||||
int zonetab_offset = (int) f.getFilePointer();
|
||||
|
||||
// Copy the zone.tab.
|
||||
reader = new BufferedReader(new FileReader(zoneTabFile));
|
||||
while ((s = reader.readLine()) != null) {
|
||||
|
@ -208,8 +210,6 @@ public class ZoneCompactor {
|
|||
}
|
||||
reader.close();
|
||||
|
||||
int zonetab_offset = (int) f.getFilePointer();
|
||||
|
||||
// Go back and fix up the offsets in the header.
|
||||
f.seek(index_offset_offset);
|
||||
f.writeInt(index_offset);
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue