From 4ac4e5a0faa01e82bf950eb72a2a0caa96da2662 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 20 Apr 2013 09:20:06 +0200 Subject: php-pecl-event: fix buffer overflow --- event.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 event.patch (limited to 'event.patch') diff --git a/event.patch b/event.patch new file mode 100644 index 0000000..8e465ba --- /dev/null +++ b/event.patch @@ -0,0 +1,11 @@ +--- event-1.6.1/classes/listener.c~ 2013-04-17 21:04:23.000000000 +0200 ++++ event-1.6.1/classes/listener.c 2013-04-20 09:11:52.608891682 +0200 +@@ -272,7 +272,7 @@ + PHP_EVENT_FETCH_BASE(base, zbase); + + if (Z_TYPE_PP(ppztarget) == IS_STRING) { +- struct sockaddr_storage *ss; ++ struct sockaddr_storage ss; + socklen_t ss_len = sizeof(ss); + memset(&ss, 0, sizeof(ss)); + -- cgit