-
Bug
-
Resolution: Done
-
P2: Important
-
5.11.0
-
None
-
934d93b9151134116d0fe23234ee9d0519a969ba
Hello,
When building the MASM library for 64 bit architectures, an unused variable was detected in the function:
explicit ALWAYS_INLINE MatchResult(EncodedMatchResult encoded)
{
union u {
uint64_t encoded;
struct s {
size_t start;
size_t end;
} split;
} value;
value.encoded = encoded;
start = value.split.start;
end = value.split.end;
}
in the file qtdeclarative/src/3rdparty/masm/runtime/MatchResult.h
Usually, on 64bit architectures, size_t equals the size of uint64_t, so this could lead to the value of end not being properly populated.