diff options
author | Marius Storm-Olsen <marius@trolltech.com> | 2009-07-01 09:49:51 (GMT) |
---|---|---|
committer | Marius Storm-Olsen <marius@trolltech.com> | 2009-07-01 09:51:13 (GMT) |
commit | cfadf08a6c06ce319f6144e724f45e4923e72778 (patch) | |
tree | 672f5e0515b2b0cf718aca773eb87f9f4f738f0e /src/gui/kernel/qguifunctions_wince.cpp | |
parent | 5ae330b6546dabada53c394b53ce9513f552a8a5 (diff) | |
download | Qt-cfadf08a6c06ce319f6144e724f45e4923e72778.zip Qt-cfadf08a6c06ce319f6144e724f45e4923e72778.tar.gz Qt-cfadf08a6c06ce319f6144e724f45e4923e72778.tar.bz2 |
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/qguifunctions_wince.cpp')
0 files changed, 0 insertions, 0 deletions