--- /dev/null
+diff --git a/device_tree.c b/device_tree.c
+index 6d9c972..296278e 100644
+--- a/device_tree.c
++++ b/device_tree.c
+@@ -91,7 +91,7 @@ void *load_device_tree(const char *filename_path, int *sizep)
+ /* First allocate space in qemu for device tree */
+ fdt = g_malloc0(dt_size);
+
+- dt_file_load_size = load_image(filename_path, fdt);
++ dt_file_load_size = load_image_size(filename_path, fdt, dt_size);
+ if (dt_file_load_size < 0) {
+ error_report("Unable to open device tree file '%s'",
+ filename_path);
Patch3: %{name}-xattr.patch
Patch4: libjpeg-boolean.patch
Patch5: x32.patch
+Patch6: %{name}-CVE-2018-20815.patch
URL: http://www.qemu-project.org/
%{?with_gl:BuildRequires: OpenGL-GLX-devel}
%{?with_gl:BuildRequires: OpenGL-devel}
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
# workaround for conflict with alsa/error.h
ln -s ../error.h qapi/error.h