* [Qemu-devel] [6545] Fix SIGSEGV crash in slirp networking code
@ 2009-02-06 21:37 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-02-06 21:37 UTC (permalink / raw)
To: qemu-devel
Revision: 6545
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6545
Author: blueswir1
Date: 2009-02-06 21:37:40 +0000 (Fri, 06 Feb 2009)
Log Message:
-----------
Fix SIGSEGV crash in slirp networking code
Fix SIGSEGV crash in networking code (bug was introduced in r6288).
Thanks to Gleb Natapov for finding this fix.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Modified Paths:
--------------
trunk/slirp/ip_input.c
Modified: trunk/slirp/ip_input.c
===================================================================
--- trunk/slirp/ip_input.c 2009-02-06 21:30:02 UTC (rev 6544)
+++ trunk/slirp/ip_input.c 2009-02-06 21:37:40 UTC (rev 6545)
@@ -392,8 +392,7 @@
* into the new buffer.
*/
if (m->m_flags & M_EXT) {
- int delta;
- delta = (char *)ip - m->m_dat;
+ int delta = (char *)q - m->m_dat;
q = (struct ipasfrag *)(m->m_ext + delta);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-06 21:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-06 21:37 [Qemu-devel] [6545] Fix SIGSEGV crash in slirp networking code Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).