summaryrefslogtreecommitdiffstats
path: root/package/flashrom/0002-sys-io.h.patch
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2017-05-28 15:56:11 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-05-28 16:14:16 +0200
commitdb55de2b42a54ca715a7aa3ed6e388ea6f557092 (patch)
tree8aff53c9d146e2b7ce10b5be6e86f91f11309c08 /package/flashrom/0002-sys-io.h.patch
parent4f9190f14e821a90cae690b1741eee4efd9b661b (diff)
downloadbuildroot-db55de2b42a54ca715a7aa3ed6e388ea6f557092.tar.gz
buildroot-db55de2b42a54ca715a7aa3ed6e388ea6f557092.zip
package/flashrom: security bump to version 0.9.9
Fixes buffer overflow: https://mail.coreboot.org/pipermail/flashrom/2016-March/014523.html Removed patch 0002-sys-io.h.patch, not needed anymore, hwaccess.h now contains a similar fix: elif defined(__linux__) || defined(__GLIBC__) Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/flashrom/0002-sys-io.h.patch')
-rw-r--r--package/flashrom/0002-sys-io.h.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/package/flashrom/0002-sys-io.h.patch b/package/flashrom/0002-sys-io.h.patch
deleted file mode 100644
index 8d990c6f91..0000000000
--- a/package/flashrom/0002-sys-io.h.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-hwaccess: sys/io.h is not specific to glibc
-
-Under Linux, sys/io.h provides inb and outb, so we really need it.
-However, its inclusion is conditional to the _GLIBC_ define. This is
-usually OK under Linux, since both glibc and uClibc define it (uclibc
-fakes being glibc).
-
-But the musl C library does not impersonate glibc, so we're missing
-including sys/io.h in this case.
-
-Change the include from checking _GLIBC_ to checking whether this is
-Linux, looking for the __linux__ define.
-
-Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-
-diff -durN flashrom-0.9.8.orig/hwaccess.h flashrom-0.9.8/hwaccess.h
---- flashrom-0.9.8.orig/hwaccess.h 2015-02-10 09:03:10.000000000 +0100
-+++ flashrom-0.9.8/hwaccess.h 2015-10-28 20:01:54.259202484 +0100
-@@ -27,7 +27,7 @@
- #include "platform.h"
-
- #if IS_X86
--#if defined(__GLIBC__)
-+#if defined(__linux__)
- #include <sys/io.h>
- #endif
- #endif
OpenPOWER on IntegriCloud