Edward Hervey
4260f8a120
all: Fix left-shift undefined behaviour
...
Cast to the target type before shifting (or use macro if available)
2017-11-20 17:06:07 +01:00
Sebastian Dröge
d3b45a145f
mxfdemux: Fix up another size check and prevent allocating too much memory
2016-11-25 16:46:45 +02:00
Sebastian Dröge
31a2f2d5a1
mxfdemux: Handle zero-sized KLV items better and don't assert on them
2016-11-25 15:59:44 +02:00
Sebastian Dröge
b5bb6e3b38
mxfdemux: Add various missing bounds checks, NULL checks and integer overflow protection for error cases
2016-11-24 23:40:21 +02:00
Sebastian Dröge
129b04fad0
mxftypes: Generate UUIDs according to RFC4122 version 4 (aka random)
...
Instead of fully random UUIDs, these should follow a scheme.
2016-01-29 23:39:26 +01:00
Sebastian Dröge
b6696122a0
mxftypes: Don't store pointers in stack allocated guints
...
This works usually in this place, unless the compiler optimizes things in
interesting ways in which case it causes stack corruption and crashes later.
The compiler in question here is clang with -O1, which seems to pack the stack
a bit more and causes writing to the guint as pointer to overwrite map.memory,
which then later crashes during unmapping of the memory.
2016-01-07 18:13:08 +02:00
Sebastian Dröge
c82d702985
mxftypes: Fix parsing of index table segments
2015-12-08 20:24:59 +02:00
Sebastian Dröge
47da7565ce
mxftypes: Add function to serialize an index table segment to a buffer
2015-12-08 10:14:41 +02:00
Sebastian Dröge
01f0d16db3
mxfmux: Index table segments must not use the primer pack
...
According to S377-1-2009c 9.2 the local tags must not be resolved from the
primer pack, which as a result means that there can't be any other tags than
statically assigned ones.
2015-12-08 10:14:41 +02:00
Sebastian Dröge
a1e240ca6b
mxftypes: Fix generation of operational pattern UL
2015-10-21 19:54:15 +03:00
Edward Hervey
be859d02a6
mxf: Handle fraction parsing failure
...
And properly cleanup/reset the segment before returning on errors
CID #206012
2014-04-16 16:19:47 +02:00
Edward Hervey
fa72b4c870
mxf: Remove useless check
...
a guint will always smaller or equal to the maximum value it can
contain
CID #206049
2014-04-16 16:12:02 +02:00
Tim-Philipp Müller
9e1b75fda3
Fix FSF address
...
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-04 00:09:59 +00:00
Michael Smith
0c8a7fa46f
mxf: Port mxfdemux to 1.0
...
Also ports mxfmux to 1.0 to the extent that it compiles, but is 100% untested,
so remains disabled.
Conflicts:
gst/mxf/mxfdemux.c
gst/mxf/mxfmux.c
2012-10-26 13:48:06 -07:00
Benjamin Otte
33c2f5fb01
Add -Wwrite-strings
...
and fix its warnings
2010-03-22 13:16:33 +01:00
Sebastian Dröge
454b1931bc
mxf: Correctly initialize memory
2010-01-21 15:58:59 +01:00
Sebastian Dröge
53128c5b4f
mxf: Unconditionally use GLib 2.16 API
2009-08-31 08:14:11 +02:00
Sebastian Dröge
f510be57cd
mxf: Fix compilation and compiler errors with GLib < 2.16.0
2009-03-26 20:28:30 +01:00
Sebastian Dröge
2c51bbdfad
mxf: Fix "cast to pointer type of different size" compiler warning
2009-03-26 14:26:34 +01:00
Sebastian Dröge
9b6d6fd0dd
mxf: Rename forgotten function to fix unresolved symbols error
2009-03-26 13:24:49 +01:00
Sebastian Dröge
c1c8b40d42
mxf: Differentiate between UL and UUID
2009-03-26 13:11:07 +01:00
Sebastian Dröge
ce01236e32
mxf: Source files and #include cleanup
2009-03-26 12:46:22 +01:00