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 
Ed Maste  <> wrote:
>I just committed the following change to FreeBSD.
>  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!


Home | Main Index | Thread Index | Old Index