aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorNikolaus Schulz <[email protected]>2010-03-31 17:21:10 +0000
committerLinus Torvalds <[email protected]>2010-03-31 17:34:11 +0000
commit30d1872d9eb3663b4cf7bdebcbf5cd465674cced (patch)
treee3771c93ad38ad5e8f9d8c70a0915afb81423545 /tools/perf/scripts/python/Perf-Trace-Util/lib
parentLinux 2.6.34-rc3 (diff)
downloadkernel-30d1872d9eb3663b4cf7bdebcbf5cd465674cced.tar.gz
kernel-30d1872d9eb3663b4cf7bdebcbf5cd465674cced.zip
fat: fix buffer overflow in vfat_create_shortname()
When using the string representation of a random counter as part of the base name, ensure that it is no longer than 4 bytes. Since we are repeatedly decrementing the counter in a loop until we have found a unique base name, the counter may wrap around zero; therefore, it is not enough to mask its higher bits before entering the loop, this must be done inside the loop. [[email protected]: use snprintf()] Signed-off-by: Nikolaus Schulz <[email protected]> Cc: [email protected] Signed-off-by: OGAWA Hirofumi <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions