summaryrefslogtreecommitdiffstats
path: root/event.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-04-20 09:20:06 +0200
committerRemi Collet <fedora@famillecollet.com>2013-04-20 09:20:06 +0200
commit4ac4e5a0faa01e82bf950eb72a2a0caa96da2662 (patch)
tree162a08732d7e6c2c6e9411197cead31486940233 /event.patch
parentea0bc3ad2c947a19b3f7f53943ff9d45a130c0b5 (diff)
php-pecl-event: fix buffer overflow
Diffstat (limited to 'event.patch')
-rw-r--r--event.patch11
1 files changed, 11 insertions, 0 deletions
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));
+