commit | 952892a28a06a4ced120d4683d930699b9d730de | [log] [tgz] |
---|---|---|
author | brucedawson <brucedawson@chromium.org> | Tue Nov 10 06:51:52 2015 |
committer | Commit bot <commit-bot@chromium.org> | Tue Nov 10 06:52:00 2015 |
tree | 004f8f749fd61f3bd62f14b71f32346a90e9a766 | |
parent | e36de90ac1c02a3585b6d9a3a8aead2fc8a36f33 [diff] |
Fix a 64-bit pointer truncation bug found by VC++ 2015 When converting from void* to unsigned long long it is dangerous to go through unsigned long because for VC++ 64-bit builds this will be 32 bits. When casting a pointer to an integral type the safest type to choose for the integral cast is always intptr_t or uintptr_t. BUG=440500 NOPRESUBMIT=true Review URL: https://codereview.webrtc.org/1437433002 Cr-Commit-Position: refs/heads/master@{#10569}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others. This page is maintained by the Google Chrome team.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.