diff options
author | Semih Yavuz <semih.yavuz@qt.io> | 2022-09-15 11:08:33 +0200 |
---|---|---|
committer | Semih Yavuz <semih.yavuz@qt.io> | 2022-09-22 23:45:53 +0200 |
commit | 9806849b055bce7734865870c65d9e5d19a0f71b (patch) | |
tree | c9c601dd08a2a561f2804b22e8bcc3763e8141fb /src/qml/jsruntime/qv4function.cpp | |
parent | 6460865f603e10820d88ef08bd5d5f31fa6e7546 (diff) | |
download | qtdeclarative-9806849b055bce7734865870c65d9e5d19a0f71b.tar.gz |
qmllint: Fix crash due to index out of range
Opening input files in binary mode may cause file to be parsed
incorrectly. To prevent the crash, Check if element in container is within the range
of valid elements before accessing it. Note that qmllint will ignore the comment
directives and may not function correct in that case.
QTBUG-106813 should solve this.
Pick-to: 6.4
Fixes: QTBUG-106613
Change-Id: I1a5705474905a747fbcc4874c3ff2038f539f42f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4function.cpp')
0 files changed, 0 insertions, 0 deletions