| Summary: | Add uint8_t specialization for WebCore::writeLittleEndian() | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Daniel Bates <dbates> | ||||||
| Component: | Bindings | Assignee: | Daniel Bates <dbates> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | aestes, alecflett, commit-queue, darin, ddkilzer, fpizlo, ggaren, jsbell, mhahnenberg, oliver | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Daniel Bates
2014-01-13 11:53:25 PST
Created attachment 221069 [details]
Patch
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. Created attachment 221070 [details]
Patch
(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. Committed r161903: <http://trac.webkit.org/changeset/161903> |