WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
126924
Add uint8_t specialization for WebCore::writeLittleEndian()
https://bugs.webkit.org/show_bug.cgi?id=126924
Summary
Add uint8_t specialization for WebCore::writeLittleEndian()
Daniel Bates
Reported
2014-01-13 11:53:25 PST
When I ran Tools/Scripts/build-webkit --debug --device, the build failed to compile SerializedScriptValue.cpp with the following error: /OpenSource/Source/WebCore/bindings/js/SerializedScriptValue.cpp:421:19: error: shift count >= width of type [-Werror,-Wshift-count-overflow] /OpenSource/Source/WebCore/bindings/js/SerializedScriptValue.cpp:967:9: note: in instantiation of function template specialization 'WebCore::writeLittleEndian<unsigned char>' requested here 1 error generated.
Attachments
Patch
(1.68 KB, patch)
2014-01-13 11:54 PST
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
Patch
(1.60 KB, patch)
2014-01-13 12:01 PST
,
Daniel Bates
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2014-01-13 11:54:13 PST
Created
attachment 221069
[details]
Patch
Darin Adler
Comment 2
2014-01-13 11:58:52 PST
Comment on
attachment 221069
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=221069&action=review
> Source/WebCore/bindings/js/SerializedScriptValue.cpp:431 > + if (length > std::numeric_limits<uint32_t>::max()) > + return false;
This can’t happen. A uint32_t can’t be higher than the maximum.
Daniel Bates
Comment 3
2014-01-13 12:01:16 PST
Created
attachment 221070
[details]
Patch
Daniel Bates
Comment 4
2014-01-13 12:02:22 PST
(In reply to
comment #2
)
> (From update of
attachment 221069
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=221069&action=review
> > > Source/WebCore/bindings/js/SerializedScriptValue.cpp:431 > > + if (length > std::numeric_limits<uint32_t>::max()) > > + return false; > > This can’t happen. A uint32_t can’t be higher than the maximum.
You're right! I removed this conditional.
Daniel Bates
Comment 5
2014-01-13 12:52:02 PST
Committed
r161903
: <
http://trac.webkit.org/changeset/161903
>
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