Hi everyone,

the attached patch enables poll(2) for the Android platform. I verified
via strace on an Android device that poll(2) is actually used after the
patch. A preliminary NEWS entry is included but needs to be updated once
we have a CVE number for this issue.

Moritz
-- 
bevuta IT GmbH - professionelle IT-Lösungen
Marktstraße 10 | http://www.bevuta.com/ | HRB 62476 AG Köln
50968 Köln     | Tel.: +49 221 282678-0 | Geschäftsführer: Pablo Beyen

>From c902019d70e4389c447f39152e71e1ddfd58395b Mon Sep 17 00:00:00 2001
From: Moritz Heidkamp <[email protected]>
Date: Mon, 4 Aug 2014 15:19:48 +0200
Subject: [PATCH 1/2] Set HAVE_POSIX_POLL for Android

---
 Makefile.android | 1 +
 NEWS             | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/Makefile.android b/Makefile.android
index 819587f..ac72ee8 100644
--- a/Makefile.android
+++ b/Makefile.android
@@ -69,6 +69,7 @@ chicken-config.h: chicken-defaults.h
 	echo "#define HAVE_LONG_LONG 1" >>$@
 	echo "#define HAVE_MEMMOVE 1" >>$@
 	echo "#define HAVE_MEMORY_H 1" >>$@
+	echo "#define HAVE_POSIX_POLL 1" >>$@
 	echo "#define HAVE_SIGACTION 1" >>$@
 	echo "#define HAVE_SIGSETJMP 1" >>$@
 	echo "#define HAVE_STDINT_H 1" >>$@
diff --git a/NEWS b/NEWS
index 20ece38..b854f8d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
 4.9.1
 
+- Security fixes
+  - Use POSIX poll() on Android (CVE pending).
+
 - Core libraries
   - alist-ref from unit data-structures now gives an error when passed
     a non-list, for consistency with assv/assq/assoc.
-- 
1.9.4

_______________________________________________
Chicken-hackers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to