WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
111562
[Qt] Illegal narrowing in tst_qwebhistory
https://bugs.webkit.org/show_bug.cgi?id=111562
Summary
[Qt] Illegal narrowing in tst_qwebhistory
Allan Sandfeld Jensen
Reported
2013-03-06 05:13:11 PST
The bytearray in tst_QWebHistory::restoreIncompatibleVersion1 has integer values higher than 127 assigned into an array of signed chars. This works correctly but causes compiler errors in C++11 since it assigns constants (>127) that doesn't fit the destination (-128 to 127).
Attachments
Patch
(2.51 KB, patch)
2013-03-06 05:15 PST
,
Allan Sandfeld Jensen
jturcotte
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Allan Sandfeld Jensen
Comment 1
2013-03-06 05:15:06 PST
Created
attachment 191722
[details]
Patch
Jocelyn Turcotte
Comment 2
2013-03-06 05:32:34 PST
Comment on
attachment 191722
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=191722&action=review
Oops
> Source/WebKit/qt/tests/qwebhistory/tst_qwebhistory.cpp:517 > + QByteArray version1((const char*)version1Dump, sizeof(version1Dump));
Nit: static_cast
Allan Sandfeld Jensen
Comment 3
2013-03-06 06:31:27 PST
Committed
r144918
: <
http://trac.webkit.org/changeset/144918
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug