[Webkit-unassigned] [Bug 208186] [OpenSSL] Implement WebCrypto APIs for AES-CTR and AES-KW

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 25 02:08:53 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=208186

Tomoki Imai <tomoki.imai at sony.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #391636|0                           |1
        is obsolete|                            |
 Attachment #391636|review?, commit-queue?      |
              Flags|                            |
 Attachment #391641|                            |review?, commit-queue?
              Flags|                            |

--- Comment #2 from Tomoki Imai <tomoki.imai at sony.com> ---
Created attachment 391641

  --> https://bugs.webkit.org/attachment.cgi?id=391641&action=review

patch

I noticed the previous patch attachment 391636 outputs the warning.
Source\WebCore\crypto\openssl\CryptoAlgorithmAES_CTROpenSSL.cpp(73,76): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)

For 64bit machine, counterLength is 63 in the worst case, so I think 1 << (size_t)63 causes overflow. 
I fixed this warning by casting 1 to size_t.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200225/47b50848/attachment.htm>


More information about the webkit-unassigned mailing list