summaryrefslogtreecommitdiff
path: root/doc/README.blackfin
diff options
context:
space:
mode:
authorKay Potthoff <kaypotthoff@gmail.com>2018-07-17 08:19:39 +0200
committerTom Rini <trini@konsulko.com>2018-07-24 09:25:23 -0400
commit149c21b098dafc5a2ae619555a844e8d0a9523f6 (patch)
treefd593e065804edfe31d57678b19823cfccd4880f /doc/README.blackfin
parent4807c40c2f145e9721fc7891730cb26043cbd723 (diff)
downloadu-boot-149c21b098dafc5a2ae619555a844e8d0a9523f6.tar.gz
mtdparts: fixed buffer overflow bug
In the case that there was no name defined for a partition the code assumes that name_len is 22 and therefore allocates exactly that space for a dummy name. But the function sprintf() first resolves "0x%08llx@0x%08llx" to a string that is longer than 22 bytes. This leads to a buffer overflow. The replacement function snprintf() limits the copied bytes to name_len and therefore avoids the buffer overflow. Signed-off-by: Kay Potthoff <Kay.Potthoff@microsys.de>
Diffstat (limited to 'doc/README.blackfin')
0 files changed, 0 insertions, 0 deletions