18 lines
467 B
Diff
18 lines
467 B
Diff
tools/pvck.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/tools/pvck.c b/tools/pvck.c
|
|
index 3437164..af2dd8e 100644
|
|
--- a/tools/pvck.c
|
|
+++ b/tools/pvck.c
|
|
@@ -395,6 +395,9 @@ static int _dump_meta_all(struct device *dev, const char *tofile,
|
|
search_offset = meta_offset + meta_size;
|
|
|
|
search_next:
|
|
+ if (search_wrapped && (search_offset >= meta_offset + meta_size))
|
|
+ goto done;
|
|
+
|
|
if (search_offset > mda_size) {
|
|
if (search_wrapped)
|
|
goto done;
|