Skip to content

Commit

Permalink
Fix coverity report
Browse files Browse the repository at this point in the history
One false positive: Coverity-Id: 1023902. default constructor would have taken care of it.
One real one: Coverity-Id: 1023901; in operator= ; we weren't copying the AES IV from the copied HLSStream
  • Loading branch information
jyavenard committed Jun 21, 2013
1 parent b30860c commit 473130b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
Expand Up @@ -394,6 +394,7 @@ class HLSStream
m_url = uri; m_url = uri;
#ifdef USING_LIBCRYPTO #ifdef USING_LIBCRYPTO
m_ivloaded = false; m_ivloaded = false;
memset(m_AESIV, 0, sizeof(m_AESIV));
#endif #endif
} }


Expand Down Expand Up @@ -439,6 +440,7 @@ class HLSStream
#ifdef USING_LIBCRYPTO #ifdef USING_LIBCRYPTO
m_keypath = rhs.m_keypath; m_keypath = rhs.m_keypath;
m_ivloaded = rhs.m_ivloaded; m_ivloaded = rhs.m_ivloaded;
memcpy(m_AESIV, rhs.m_AESIV, sizeof(m_AESIV));
#endif #endif
return *this; return *this;
} }
Expand Down

0 comments on commit 473130b

Please sign in to comment.