diff options
author | Nick Kralevich <nnk@google.com> | 2015-08-20 09:56:39 -0700 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2015-09-02 14:04:12 -0700 |
commit | 582757713e2a0cab2fc45e217bf59ab495e1a942 (patch) | |
tree | b5fe6db75b4d6e1921bc078657442e00c99d0881 /media/libmedia/IMediaPlayer.cpp | |
parent | a894a56447c24822e8131a1152852091d8953453 (diff) | |
download | frameworks_av-582757713e2a0cab2fc45e217bf59ab495e1a942.zip frameworks_av-582757713e2a0cab2fc45e217bf59ab495e1a942.tar.gz frameworks_av-582757713e2a0cab2fc45e217bf59ab495e1a942.tar.bz2 |
IMediaPlayer.cpp: make sure structures are initialized to 0
Credit https://code.google.com/p/android/issues/detail?id=183310
Bug: 23515142
Change-Id: Idbd66fb148bd0ac1dd78f8651d0164f2a41e2427
(cherry picked from commit b73b826cc16291b33649402497efbe0f946413bd)
Diffstat (limited to 'media/libmedia/IMediaPlayer.cpp')
-rw-r--r-- | media/libmedia/IMediaPlayer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libmedia/IMediaPlayer.cpp b/media/libmedia/IMediaPlayer.cpp index bde35f2..7387a79 100644 --- a/media/libmedia/IMediaPlayer.cpp +++ b/media/libmedia/IMediaPlayer.cpp @@ -653,6 +653,7 @@ status_t BnMediaPlayer::onTransact( CHECK_INTERFACE(IMediaPlayer, data, reply); struct sockaddr_in endpoint; + memset(&endpoint, 0, sizeof(endpoint)); int amt = data.readInt32(); if (amt == sizeof(endpoint)) { data.read(&endpoint, sizeof(struct sockaddr_in)); @@ -667,6 +668,7 @@ status_t BnMediaPlayer::onTransact( CHECK_INTERFACE(IMediaPlayer, data, reply); struct sockaddr_in endpoint; + memset(&endpoint, 0, sizeof(endpoint)); status_t res = getRetransmitEndpoint(&endpoint); reply->writeInt32(res); |