[meego-commits] 24167: Changes to MeeGo:1.2.0:oss/avahi
jieyang
no_reply at build.meego.com
Thu Sep 29 01:59:21 UTC 2011
Hi,
I have made the following changes to avahi in project MeeGo:1.2.0:oss. Please review and accept ASAP.
Thank You,
jieyang
[This message was auto-generated]
---
Request #24167:
submit: MeeGo:1.2.0:oss:Update:Testing/avahi(r2)(cleanup) -> MeeGo:1.2.0:oss/avahi
Message:
forward to 1.2.0:oss
State: new 2011-09-28T18:48:57 jieyang
Comment: None
changes files:
--------------
--- avahi.changes
+++ avahi.changes
@@ -0,0 +1,3 @@
+* Thu Aug 4 2011 Ye Gang <gang.ye at intel.com> - 0.6.25
+- add a patch to fix BMC#13846
+
new:
----
avahi-CVE-2011-1002.patch
spec files:
-----------
--- avahi.spec
+++ avahi.spec
@@ -38,6 +38,7 @@
Patch5: avahi-poll.patch
Patch6: avahi-fix-rlimit.patch
Patch7: CVE-2010-2244.patch
+Patch8: avahi-CVE-2011-1002.patch
%description
Avahi is a system which facilitates service discovery on
@@ -227,7 +228,7 @@
%patch5 -p1
%patch6 -p1
%patch7 -p1
-
+%patch8 -p1
# nuke rpath, TODO: double-check if still required on new releases
autoreconf -i
other changes:
--------------
++++++ avahi-CVE-2011-1002.patch (new)
--- avahi-CVE-2011-1002.patch
+++ avahi-CVE-2011-1002.patch
+diff -Nur avahi-0.6.25/avahi-core/socket.c new/avahi-core/socket.c
+--- avahi-0.6.25/avahi-core/socket.c 2011-06-13 15:00:34.000000000 +0800
++++ new/avahi-core/socket.c 2011-06-13 15:06:37.000000000 +0800
+@@ -681,11 +681,15 @@
+ goto fail;
+ }
+
+- if (sa.sin_addr.s_addr == INADDR_ANY) {
+- /* Linux 2.4 behaves very strangely sometimes! */
+- goto fail;
+- }
++ /* For corrupt packets FIONREAD returns zero size (See rhbz #607297). So
++ * fail after having read them. */
++ if (!ms)
++ goto fail;
+
++ if (sa.sin_addr.s_addr == INADDR_ANY)
++ /* Linux 2.4 behaves very strangely sometimes!*/
++ goto fail;
++
+ assert(!(msg.msg_flags & MSG_CTRUNC));
+ assert(!(msg.msg_flags & MSG_TRUNC));
+
+@@ -837,6 +841,10 @@
+
+ goto fail;
+ }
++ /* For corrupt packets FIONREAD returns zero size (See rhbz #607297). So
++ * fail after having read them. */
++ if (!ms)
++ goto fail;
+
+ assert(!(msg.msg_flags & MSG_CTRUNC));
+ assert(!(msg.msg_flags & MSG_TRUNC));
More information about the MeeGo-commits
mailing list