summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qkeymapper_win.cpp
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius@trolltech.com>2009-07-01 11:49:51 +0200
committerMarius Storm-Olsen <marius@trolltech.com>2009-07-01 11:51:13 +0200
commitcfadf08a6c06ce319f6144e724f45e4923e72778 (patch)
tree672f5e0515b2b0cf718aca773eb87f9f4f738f0e /src/gui/kernel/qkeymapper_win.cpp
parent5ae330b6546dabada53c394b53ce9513f552a8a5 (diff)
Handle application paths larger than MAX_PATH, and fix potential buffer overflow
These days we can easily get very long paths, so we should support application paths as long as needed. There was also a potention exploit in that if the path was MAX_PATH or larger, the string would not be \0 terminated (see MSDN docs for GetModuleFileName), and thus cause problems in QString::fromWCharArray(). Merge-request: 604 Reviewed-by: Marius Storm-Olsen <marius@trolltech.com>
Diffstat (limited to 'src/gui/kernel/qkeymapper_win.cpp')
0 files changed, 0 insertions, 0 deletions