summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativetextedit
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@digia.com>2013-01-11 16:47:58 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-20 09:36:23 (GMT)
commit32426500bc9126de7322ce666e1fae4c0848731f (patch)
tree06558bb4c4923d2df7675ce97f94c03799e796a7 /tests/auto/declarative/qdeclarativetextedit
parent4326cff0ada1e1bd9265ff11a035ae21314471f0 (diff)
downloadQt-32426500bc9126de7322ce666e1fae4c0848731f.zip
Qt-32426500bc9126de7322ce666e1fae4c0848731f.tar.gz
Qt-32426500bc9126de7322ce666e1fae4c0848731f.tar.bz2
fix illegal reference to a destroyed variable
The char array 'dash_o' is an automatic variable. The string "-o" is copied into this array. Later the address of the array dash_o is assigned twice to lpargs[++i]. After leaving the block, the array dash_o is gone and lpargs[...] contains an illegal reference. This was discovered in a release mode when compiled with gcc version 4.7.2 Patch doesn't apply for Qt5 where 'lpr' support has been removed. Change-Id: I4f99badfa380ad3b29893a350f0d699bfb934c68 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativetextedit')
0 files changed, 0 insertions, 0 deletions