Skip to content

Commit 980207a

Browse files
committed
chore/CVE-2023-5217: brings in more buffer-overflow mitigation
IOW: synchronizes lines of Track::Info::CopyStr from upstream - nothing new
1 parent e1a83f1 commit 980207a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

third_party/libwebm/mkvparser/mkvparser.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -4569,7 +4569,8 @@ int Track::Info::CopyStr(char* Info::*str, Info& dst_) const {
45694569
if (dst == NULL)
45704570
return -1;
45714571

4572-
strcpy(dst, src);
4572+
memcpy(dst, src, len);
4573+
dst[len] = '\0';
45734574

45744575
return 0;
45754576
}

0 commit comments

Comments
 (0)