Date: Sat, 21 Jul 2007 19:20:15 GMT From: Fredrik Lindberg <fli@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 123858 for review Message-ID: <200707211920.l6LJKFUV010885@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123858 Change 123858 by fli@fli_nexus on 2007/07/21 19:19:49 - Check if argument is NULL before trying to copy it. Affected files ... .. //depot/projects/soc2007/fli-mdns_sd/mdnsd/event.c#7 edit Differences ... ==== //depot/projects/soc2007/fli-mdns_sd/mdnsd/event.c#7 (text+ko) ==== @@ -416,7 +416,8 @@ * properly passed to remove_event() once the event * can be removed. */ - memcpy(&ev->ev_init_arg, arg, sizeof(ev_arg)); + if (arg != NULL) + memcpy(&ev->ev_init_arg, arg, sizeof(ev_arg)); RW_UNLOCK(ev, ev_lock); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707211920.l6LJKFUV010885>