Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Aug 2013 20:25:06 +0400
From:      Andrey Chernov <ache@freebsd.org>
To:        "Rafal W." <kenorb@gmail.com>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/181263: grep crashes at memchr/__sfvwrite when using colors
Message-ID:  <520A5DE2.4040103@freebsd.org>
In-Reply-To: <201308131350.r7DDo13u022460@freefall.freebsd.org>
References:  <201308131350.r7DDo13u022460@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 13.08.2013 17:50, Rafal W. wrote:
>  at /usr/src/lib/libc/stdio/fvwrite.c:170
>    #2  0x0000000801007698 in fwrite (buf=0x608c03,
>  size=18446744073709551606, count=1, fp=0x801247770)
>        at /usr/src/lib/libc/stdio/fwrite.c:95
>    #3  0x0000000000405498 in printline (line=0x7fffffffdb70, sep=58,
>  matches=0x7fffffffd990, m=9)

It seems matches[i] array went south providing negative count for fwrite().

-- 
http://ache.vniz.net/
bitcoin:1G6ugdNY6e5jx1GVnAU2ntj2NEfmjKG85r



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?520A5DE2.4040103>