summaryrefslogtreecommitdiff
path: root/utils/rbutilqt/gui/infowidget.cpp
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2022-04-15 17:53:36 +0200
committerSolomon Peachy <pizza@shaftnet.org>2022-04-18 10:58:40 -0400
commite71a4417628278313584789e5c9a463bd2b4bb0a (patch)
tree92d34c2d8898f4d969cfdbc23708d51d6f032c48 /utils/rbutilqt/gui/infowidget.cpp
parent1c66e975222558e8cd80d8ce2cd083370fb157a2 (diff)
downloadrockbox-e71a4417628278313584789e5c9a463bd2b4bb0a.tar.gz
rockbox-e71a4417628278313584789e5c9a463bd2b4bb0a.zip
ImageViewer: Fix buffer overflow
np_file is a buffer of size MAX_PATH. After removing only the file name component and leaving the rest of the path, the available space may not be sufficient for appending another file name (possibly of size MAX_PATH itself) to it. This can occur after a file of acceptable length is opened in ImageViewer, and you then advance to another file whose path (including the file name) is longer than MAX_PATH. Change-Id: Ideadd9451359bd5735bce92fca5d983e61f300e9
Diffstat (limited to 'utils/rbutilqt/gui/infowidget.cpp')
0 files changed, 0 insertions, 0 deletions