Clear empty video frames in unittest so DrMemory will allow them to be read without an uninitialized read error.
BUG=libyuv:263 TESTED=drmemory out\Debug\modules_unittests.exe --gtest_filter=*PreprocessorLogic R=kjellander@webrtc.org, mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/4319004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5168 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
aa74b5d690
commit
b5bc098e20
@ -39,20 +39,6 @@ system call NtUserGetThreadDesktop parameter value #1
|
||||
...
|
||||
*!testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test,void>
|
||||
|
||||
UNINITIALIZED READ
|
||||
name=https://code.google.com/p/libyuv/issues/detail?id=263
|
||||
*!ScaleAddRows_SSE2
|
||||
...
|
||||
*!ScalePlaneDown
|
||||
*!ScalePlane
|
||||
*!I420Scale
|
||||
*!webrtc::Scaler::Scale
|
||||
*!webrtc::VPMSimpleSpatialResampler::ResampleFrame
|
||||
*!webrtc::VPMFramePreprocessor::PreprocessFrame
|
||||
*!webrtc::VideoProcessingModuleImpl::PreprocessFrame
|
||||
*!webrtc::VideoProcessingModuleTest_PreprocessorLogic_Test::TestBody
|
||||
*!testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test,void>
|
||||
|
||||
LEAK
|
||||
name=https://code.google.com/p/webrtc/issues/detail?id=2333
|
||||
drmemorylib.dll!replace_operator_new
|
||||
|
@ -45,7 +45,10 @@ void VideoProcessingModuleTest::SetUp() {
|
||||
|
||||
ASSERT_EQ(0, video_frame_.CreateEmptyFrame(width_, height_, width_,
|
||||
half_width_, half_width_));
|
||||
|
||||
// Clear video frame so DrMemory/Valgrind will allow reads of the buffer.
|
||||
memset(video_frame_.buffer(kYPlane), 0, video_frame_.allocated_size(kYPlane));
|
||||
memset(video_frame_.buffer(kUPlane), 0, video_frame_.allocated_size(kUPlane));
|
||||
memset(video_frame_.buffer(kVPlane), 0, video_frame_.allocated_size(kVPlane));
|
||||
const std::string video_file =
|
||||
webrtc::test::ResourcePath("foreman_cif", "yuv");
|
||||
source_file_ = fopen(video_file.c_str(),"rb");
|
||||
|
Loading…
x
Reference in New Issue
Block a user