mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Allocate space for the extra_data because it's freed later.
This commit is contained in:
parent
e976802eb1
commit
de6e647012
@ -1,5 +1,7 @@
|
||||
2004-02-21 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mkvmerge: bug fix: segfault in the RealMedia reader.
|
||||
|
||||
* mmg: bug fix: When adding a Matroska file that contains a track
|
||||
name or a title with non-ASCII characters those would be displayed
|
||||
as UTF-8 in the appropriate input boxes. This has been changed,
|
||||
|
@ -381,8 +381,9 @@ real_reader_c::parse_headers() {
|
||||
dmx->fourcc[4] = 0;
|
||||
p += 4;
|
||||
if (size > (p - buffer)) {
|
||||
dmx->extra_data = (unsigned char *)p;
|
||||
dmx->extra_data_size = size - (p - buffer);
|
||||
dmx->extra_data =
|
||||
(unsigned char *)safememdup(p, dmx->extra_data_size);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user