fs: fat_write: fix short name creation.
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 26 May 2020 19:06:50 +0000 (21:06 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 7 Jul 2020 22:23:48 +0000 (18:23 -0400)
commita20f0c820fb024a48f667334777ca4022838693d
tree4d19408904f3e4510ee641dcf1a286d51256e1de
parentfa914675d2c8699765f9b7644cff761ff04732cb
fs: fat_write: fix short name creation.

Truncate file names if the buffer size is exceeded to avoid a buffer
overflow.

Use Sphinx style function description.

Add a TODO comment.

Reported-by: CID 303779
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
fs/fat/fat_write.c