mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 20:01:53 +00:00
Prevention of buffer overflows...
This commit is contained in:
parent
3768e44f1a
commit
98697f1958
@ -553,7 +553,7 @@ void generic_packetizer_c::dump_packet(const void *buffer, int size) {
|
|||||||
if (dump_packets == NULL)
|
if (dump_packets == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
path = (char *)safemalloc(strlen(dump_packets) + 1 + 15);
|
path = (char *)safemalloc(strlen(dump_packets) + 1 + 30);
|
||||||
mxprints(path, "%s/%u-%010lld", dump_packets, hserialno,
|
mxprints(path, "%s/%u-%010lld", dump_packets, hserialno,
|
||||||
dumped_packet_number);
|
dumped_packet_number);
|
||||||
dumped_packet_number++;
|
dumped_packet_number++;
|
||||||
|
Loading…
Reference in New Issue
Block a user