[U-Boot] [U-Boot,1/1] env: avoid possible NULL pointer access

Tom Rini trini at konsulko.com
Fri May 12 17:21:18 UTC 2017


On Mon, May 08, 2017 at 08:23:54PM +0200, xypron.glpk at gmx.de wrote:

> env_attr_lookup call env_attr_walk with
> callback = regex_callback.
> 
> In env_attr_walk
> attributes = strchr(entry_cpy, ENV_ATTR_SEP)
> will return NULL if ENV_ATTR_SEP is not found.
> 
> In the aftermath regex_callback may call
> strlen(attributes)
> with a NULL value which will lead to a failure.
> 
> The problem was indicated by scan-clam.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170512/ac046c69/attachment.sig>


More information about the U-Boot mailing list