diff options
author | Marius Storm-Olsen <marius@trolltech.com> | 2009-07-01 11:49:51 +0200 |
---|---|---|
committer | Marius Storm-Olsen <marius@trolltech.com> | 2009-07-01 11:51:13 +0200 |
commit | cfadf08a6c06ce319f6144e724f45e4923e72778 (patch) | |
tree | 672f5e0515b2b0cf718aca773eb87f9f4f738f0e /src/gui | |
parent | 5ae330b6546dabada53c394b53ce9513f552a8a5 (diff) | |
download | qt4-tools-cfadf08a6c06ce319f6144e724f45e4923e72778.tar.gz |
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')
0 files changed, 0 insertions, 0 deletions