Code: int Track::Info::Copy(Info& dst) const {
 if (&dst == this)
 return 0;

  dst.type = type;
  dst.number = number;
  dst.defaultDuration = defaultDuration;
  dst.codecDelay = codecDelay;
  dst.seekPreRoll = seekPreRoll;
  dst.uid = uid;
  dst.lacing = lacing;
  dst.settings = settings;


 if (int status = CopyStr(&Info::nameAsUTF8, dst))
 return status;

 if (int status = CopyStr(&Info::language, dst))
 return status;

 if (int status = CopyStr(&Info::codecId, dst))
 return status;

 if (int status = CopyStr(&Info::codecNameAsUTF8, dst))
 return status;

 if (codecPrivateSize > 0) {
 if (codecPrivate == NULL)
 return -1;

 if (dst.codecPrivate)
 return -1;


     if (dst.codecPrivateSize != 0)
       return -1;
 
    dst.codecPrivate = new (std::nothrow) unsigned char[codecPrivateSize];
 
     if (dst.codecPrivate == NULL)
       return -1;

    memcpy(dst.codecPrivate, codecPrivate, codecPrivateSize);
    dst.codecPrivateSize = codecPrivateSize;
 }

 return 0;
}

Vulnerability Type: DoS Exec Code Mem. Corr. 
CWE ID: CWE-20
Summary: libvpx in libwebm in mediaserver in Android 4.x before 4.4.4, 5.0.x before 5.0.2, 5.1.x before 5.1.1, and 6.x before 2016-06-01 allows remote attackers to execute arbitrary code or cause a denial of service (memory corruption) via a crafted mkv file, aka internal bug 23167726.
Commit Message: external/libvpx/libwebm: Update snapshot

Update libwebm snapshot. This update contains security fixes from upstream.

Upstream git hash: 229f49347d19b0ca0941e072b199a242ef6c5f2b

BUG=23167726

Change-Id: Id3e140e7b31ae11294724b1ecfe2e9c83b4d4207
(cherry picked from commit d0281a15b3c6bd91756e453cc9398c5ef412d99a)
