Date: Sat, 25 Feb 2006 23:00:20 GMT From: Stephen Montgomery-Smith <stephen@math.missouri.edu> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/93841: seg fault with dmesg Message-ID: <200602252300.k1PN0KDg022559@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/93841; it has been noted by GNATS. From: Stephen Montgomery-Smith <stephen@math.missouri.edu> To: bug-followup@FreeBSD.org, stephen@math.missouri.edu Cc: Subject: Re: bin/93841: seg fault with dmesg Date: Sat, 25 Feb 2006 16:57:56 -0600 Actually my suggested fix isn't going to work in every situation. How about: --- dmesg.c-orig Sat Feb 25 16:26:18 2006 +++ dmesg.c Sat Feb 25 16:52:11 2006 @@ -184,7 +184,8 @@ errno == 0) { if (LOG_FAC(pri) != LOG_KERN && !all) continue; - p = q + 1; + if (q < nextp) + p = q + 1; } } (This patch is unlikely to apply cleanly because my mail client has probably messed it up.)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602252300.k1PN0KDg022559>