Skip to content

Commit

Permalink
chore/CVE-2023-5217: brings in more buffer-overflow mitigation
Browse files Browse the repository at this point in the history
IOW: synchronizes lines of Track::Info::CopyStr from upstream - nothing new
  • Loading branch information
gabrielfalcao committed Oct 14, 2023
1 parent e1a83f1 commit 980207a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion third_party/libwebm/mkvparser/mkvparser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4569,7 +4569,8 @@ int Track::Info::CopyStr(char* Info::*str, Info& dst_) const {
if (dst == NULL)
return -1;

strcpy(dst, src);
memcpy(dst, src, len);
dst[len] = '\0';

return 0;
}
Expand Down

0 comments on commit 980207a

Please sign in to comment.