On Sun, May 31, 2020 at 07:24:24PM -0400, Christos Zoulas wrote:
> Module Name: src
> Committed By: christos
> Date: Sun May 31 23:24:24 UTC 2020
>
> Modified Files:
> src/lib/libedit: terminal.c tty.c
>
> Log Message:
> use strlcpy() instead of strncpy() for gcc happiness
>
...
On 2020/06/02 2:08, Joerg Sonnenberger wrote:
On Sun, May 31, 2020 at 11:24:20PM +, Rin Okuyama wrote:
Module Name:src
Committed By: rin
Date: Sun May 31 23:24:20 UTC 2020
Modified Files:
src/sys/kern: kern_timeout.c
Log Message:
Stop allocating buffers dynamically
On Sun, May 31, 2020 at 11:24:20PM +, Rin Okuyama wrote:
> Module Name: src
> Committed By: rin
> Date: Sun May 31 23:24:20 UTC 2020
>
> Modified Files:
> src/sys/kern: kern_timeout.c
>
> Log Message:
> Stop allocating buffers dynamically in a DDB session, in order not to
>
> This feels not good.
> strncpy->strlcpy has repercussions like how strlcpy doesn't zero out the
> remaining length and thus leaks uninitialized data.
>
> There has to be a reasonable way to handle these warnings instead of
> rototilling which str*cpy function is used.
Please read the code