Thomas Huth a2b83a5165 block/vvfat: Fix crash when reporting error about too many files in directory
When using the vvfat driver with a directory that contains too many files,
QEMU currently crashes. This can be triggered like this for example:

 mkdir /tmp/vvfattest
 cd /tmp/vvfattest
 for ((x=0;x<=513;x++)); do mkdir $x; done
 qemu-system-x86_64 -drive \
   file.driver=vvfat,file.dir=.,read-only=on,media=cdrom

Seems like read_directory() is changing the mapping->path variable. Make
sure we use the right pointer instead.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2018-11-05 15:09:54 +01:00
..
2018-07-10 16:01:52 +02:00
2018-08-31 16:28:33 +02:00
2018-08-15 12:50:39 +02:00
2016-10-07 14:14:06 +02:00
2018-09-25 15:50:15 +02:00
2018-07-05 10:29:19 +02:00
2018-08-15 12:50:39 +02:00
2018-10-12 09:46:14 +08:00
2018-02-09 05:05:11 +01:00
2018-07-10 17:28:29 +01:00
2018-07-30 15:35:37 +02:00
2017-07-17 11:34:11 +08:00
2018-08-15 12:50:39 +02:00
2018-07-10 16:01:52 +02:00
2018-07-02 14:45:23 +02:00
2018-10-19 14:55:46 +02:00
2018-06-15 14:49:44 +02:00