tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] off-by-one in libexecinfo's rasprintf



In article 
<CAPyFy2DwvTmkhN0H06oOe3-SYwtiu_aHsBwDCRrQqFdrLTtASQ%mail.gmail.com@localhost>,
Ed Maste  <emaste%freebsd.org@localhost> wrote:
>I just committed the following change to FreeBSD.
>http://svnweb.freebsd.org/changeset/base/258426
>
>  libexecinfo: Include terminating null in byte count
>
>  Otherwise, a formatted string with a strlen equal to the remaining
>  buffer space would have the last character omitted (because vsnprintf
>  always null-terminates), and later the assert in backtrace_symbols_fmt
>  would fail.
>

Fixed, thanks!

christos



Home | Main Index | Thread Index | Old Index