Permalink
Browse files

Fix coverity report

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 473130bbfded09be2ea4811e7eb2203fa885da75
Showing with 2 additions and 0 deletions.
  1. +2 −0 mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp
@@ -394,6 +394,7 @@ class HLSStream
m_url = uri;
#ifdef USING_LIBCRYPTO
m_ivloaded = false;
memset(m_AESIV, 0, sizeof(m_AESIV));
#endif
}
@@ -439,6 +440,7 @@ class HLSStream
#ifdef USING_LIBCRYPTO
m_keypath = rhs.m_keypath;
m_ivloaded = rhs.m_ivloaded;
memcpy(m_AESIV, rhs.m_AESIV, sizeof(m_AESIV));
#endif
return *this;
}

0 comments on commit 473130b

Please sign in to comment.