Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Unified Diff: webrtc/modules/audio_coding/codecs/ilbc/create_augmented_vec.c

Issue 2293893002: Add functions to interact with ASan and MSan, and some sample uses (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/codecs/ilbc/create_augmented_vec.c
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/create_augmented_vec.c b/webrtc/modules/audio_coding/codecs/ilbc/create_augmented_vec.c
index 4dcf49b6e7b76f6893276d658b0a5658e5fc3bd4..8dcb6b75a0686db651d5bb1f366abed90a2b90e0 100644
--- a/webrtc/modules/audio_coding/codecs/ilbc/create_augmented_vec.c
+++ b/webrtc/modules/audio_coding/codecs/ilbc/create_augmented_vec.c
@@ -18,6 +18,7 @@
#include "defines.h"
#include "constants.h"
+#include "webrtc/base/sanitizer.h"
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h"
/*----------------------------------------------------------------*
@@ -40,6 +41,9 @@ void WebRtcIlbcfix_CreateAugmentedVec(
*/
size_t interp_len = WEBRTC_SPL_MIN(index, 4);
+ rtc_MsanCheckInitialized(buffer - index - interp_len, sizeof(buffer[0]),
+ index + interp_len);
kwiberg-webrtc 2016/08/30 19:55:28 This is another example of a rtc_MsanCheckInitiali
+
ilow = index - interp_len;
/* copy the first noninterpolated part */

Powered by Google App Engine
This is Rietveld 408576698