[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] block/vvfat: Fix crash when reporting error about t
From: |
Thomas Huth |
Subject: |
[Qemu-devel] [PATCH] block/vvfat: Fix crash when reporting error about too many files in directory |
Date: |
Wed, 18 Jul 2018 17:28:23 +0200 |
When using the vvfat driver with a directory that contains too many files,
QEMU currently crashes. We are trying to print the wrong path variable here.
Signed-off-by: Thomas Huth <address@hidden>
---
block/vvfat.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/block/vvfat.c b/block/vvfat.c
index fc41841..6ae7458 100644
--- a/block/vvfat.c
+++ b/block/vvfat.c
@@ -975,8 +975,7 @@ static int init_directories(BDRVVVFATState* s,
if (mapping->mode & MODE_DIRECTORY) {
mapping->begin = cluster;
if(read_directory(s, i)) {
- error_setg(errp, "Could not read directory %s",
- mapping->path);
+ error_setg(errp, "Could not read directory \"%s\"", s->path);
return -1;
}
mapping = array_get(&(s->mapping), i);
--
1.8.3.1
- [Qemu-devel] [PATCH] block/vvfat: Fix crash when reporting error about too many files in directory,
Thomas Huth <=