xen/xen-qcow-realpath-buffer-overflow.patch

14 lines
530 B
Diff
Raw Normal View History

Index: xen-3.2-testing/tools/blktap/drivers/block-qcow.c
===================================================================
--- xen-3.2-testing.orig/tools/blktap/drivers/block-qcow.c
+++ xen-3.2-testing/tools/blktap/drivers/block-qcow.c
@@ -1223,7 +1223,7 @@ int qcow_create(const char *filename, ui
int shift, length, adjust, flags = 0, ret = 0;
QCowHeader header;
QCowHeader_ext exthdr;
- char backing_filename[1024], *ptr;
+ char backing_filename[PATH_MAX], *ptr;
uint64_t tmp, size, total_length;
struct stat st;