File tree 2 files changed +5
-5
lines changed
windows/wrapper/override/cppwinrt 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ void Org::WebRtc::implementation::AudioData::Data(Windows::Foundation::IMemoryBu
349
349
350
350
int16_t * const firstData = native_->mutableData ();
351
351
352
- memcpy (firstData, source, sizeof (int16_t )* passedSize);
352
+ memcpy (firstData, source, SafeInt< size_t >( sizeof (int16_t ) * passedSize) );
353
353
}
354
354
355
355
// ------------------------------------------------------------------------------
@@ -380,7 +380,7 @@ uint64_t Org::WebRtc::implementation::AudioData::GetData(array_view<int16_t> val
380
380
(!source))
381
381
return 0 ;
382
382
383
- memcpy (dest, source, sizeof (int16_t )* size);
383
+ memcpy (dest, source, SafeInt< size_t >( sizeof (int16_t ) * size) );
384
384
385
385
return size;
386
386
}
@@ -404,7 +404,7 @@ uint64_t Org::WebRtc::implementation::AudioData::SetData(array_view<int16_t cons
404
404
(!source))
405
405
return 0 ;
406
406
407
- memcpy (dest, source, sizeof (int16_t )* size);
407
+ memcpy (dest, source, SafeInt< size_t >( sizeof (int16_t ) * size) );
408
408
409
409
return size;
410
410
}
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ uint64_t Org::WebRtc::implementation::VideoData::GetData8bit(array_view<uint8_t>
208
208
(!source))
209
209
return 0 ;
210
210
211
- memcpy (dest, source, sizeof (uint8_t )* size);
211
+ memcpy (dest, source, SafeInt< size_t >( sizeof (uint8_t ) * size) );
212
212
213
213
return size;
214
214
}
@@ -231,7 +231,7 @@ uint64_t Org::WebRtc::implementation::VideoData::GetData16bit(array_view<uint16_
231
231
(!source))
232
232
return 0 ;
233
233
234
- memcpy (dest, source, sizeof (uint16_t )* size);
234
+ memcpy (dest, source, SafeInt< size_t >( sizeof (uint16_t ) * size) );
235
235
236
236
return size;
237
237
}
You can’t perform that action at this time.
0 commit comments