Re: [PATCH v2] ash: ensure variables are fully initialised when unset

2018-11-16 Thread Denys Vlasenko
Applied, thanks! On Mon, Nov 12, 2018 at 10:11 PM Ron Yorston wrote: > > When a variable is unset by calling setvar(name, NULL, 0) the code > to initialise the new, empty variable fails to initialise the last > character of the string. > > Attempts to read the contents of the unset variable will r

[PATCH v2] ash: ensure variables are fully initialised when unset

2018-11-12 Thread Ron Yorston
When a variable is unset by calling setvar(name, NULL, 0) the code to initialise the new, empty variable fails to initialise the last character of the string. Attempts to read the contents of the unset variable will result in the uninitialised character at the end of the string being accessed. Fo