提交 d351d35a authored 作者: Thomas Mueller's avatar Thomas Mueller

MVStore: the dump tool could go into an endless loop for some files.

上级 0d70063d
...@@ -131,6 +131,11 @@ public class MVStoreTool { ...@@ -131,6 +131,11 @@ public class MVStoreTool {
pos += blockSize; pos += blockSize;
continue; continue;
} }
if (c.len <= 0) {
// not a chunk
pos += blockSize;
continue;
}
int length = c.len * MVStore.BLOCK_SIZE; int length = c.len * MVStore.BLOCK_SIZE;
pw.printf("%n%0" + len + "x chunkHeader %s%n", pw.printf("%n%0" + len + "x chunkHeader %s%n",
pos, c.toString()); pos, c.toString());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论