Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
user avatar
Przemyslaw Marczak authored
In function dfu_get_buf(), the size of allocated buffer could
be defined by the env variable. The size from this variable
was passed for memalign() without checking its value.
And the the memalign will return non null pointer for size 0.

This could possibly cause data abort, so now the value of var
is checked before use. And if this variable is set to 0 then
the default size will be used.

This commit also changes the base passed to simple_strtoul()
to 0. Now decimal and hex values can be used for the variable
dfu_bufsiz.

Signed-off-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
Tested-by: default avatarLukasz Majewski <l.majewski@samsung.com>
[TestHW: Exynos4412-Trats2]
f597fc3d
History
Name Last commit Last update
..