acpica-tools/free.patch
Al Stone ae6f250891 Update to 20181003 upstream source
Signed-off-by: Al Stone <ahs3@redhat.com>
2018-10-24 14:19:27 -06:00

16 lines
575 B
Diff

This prevents a segfault when an Include file does not exist.
Index: acpica-unix2-20181003/source/compiler/aslfiles.c
===================================================================
--- acpica-unix2-20181003.orig/source/compiler/aslfiles.c
+++ acpica-unix2-20181003/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);
}