]> git.pld-linux.org Git - packages/acpica.git/blobdiff - free.patch
- updated to 20170303 with current Fedora patches
[packages/acpica.git] / free.patch
diff --git a/free.patch b/free.patch
new file mode 100644 (file)
index 0000000..03488fc
--- /dev/null
@@ -0,0 +1,15 @@
+This prevents a segfault when an Include file does not exist.
+
+Index: acpica-unix2-20161222/source/compiler/aslfiles.c
+===================================================================
+--- acpica-unix2-20161222.orig/source/compiler/aslfiles.c
++++ acpica-unix2-20161222/source/compiler/aslfiles.c
+@@ -319,7 +319,7 @@ FlOpenIncludeWithPrefix (
+     if (!IncludeFile)
+     {
+         fprintf (stderr, "Could not open include file %s\n", Pathname);
+-        ACPI_FREE (Pathname);
++        /* ACPI_FREE (Pathname); <-- forces free() segfault */
+         return (NULL);
+     }
This page took 0.145979 seconds and 4 git commands to generate.