Changeset 246092 in webkit
- Timestamp:
- Jun 4, 2019, 5:40:35 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/avfoundation/ISOFairPlayStreamingPsshBox.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r246091 r246092 1 2019-06-04 Keith Rollin <krollin@apple.com> 2 3 Fix 64-bit vs 32-bit mismatch in ISOFairPlayStreamingPsshBox.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=198539 5 <rdar://problem/51410358> 6 7 Reviewed by Alex Christensen. 8 9 Both ISOFairPlayStreamingKeyAssetIdBox and 10 ISOFairPlayStreamingKeyContextBox have Vector<> data members. The 11 parse() members of these classes call Vector<>::resize() on these 12 members. In both cases, the type of the parameter passed is a 13 uint64_t. However, resize() takes a size_t. On some platforms, size_t 14 is a 32-bit value, leading to a compile-time type mismatch error. Fix 15 this by changing the type of the value passed to parse() into a 16 size_t. 17 18 No new tests -- no new functionality. 19 20 * platform/graphics/avfoundation/ISOFairPlayStreamingPsshBox.cpp: 21 (WebCore::ISOFairPlayStreamingKeyAssetIdBox::parse): 22 (WebCore::ISOFairPlayStreamingKeyContextBox::parse): 23 1 24 2019-06-04 Keith Rollin <krollin@apple.com> 2 25 -
trunk/Source/WebCore/platform/graphics/avfoundation/ISOFairPlayStreamingPsshBox.cpp
r244439 r246092 89 89 return false; 90 90 91 uint64_t dataSize;91 size_t dataSize; 92 92 if (!WTF::safeSub(m_size, localOffset - offset, dataSize)) 93 93 return false; … … 118 118 return false; 119 119 120 uint64_t dataSize;120 size_t dataSize; 121 121 if (!WTF::safeSub(m_size, localOffset - offset, dataSize)) 122 122 return false;
Note:
See TracChangeset
for help on using the changeset viewer.