diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-07-31 20:25:17 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-07-31 23:54:47 +0100 |
commit | 93690bfdd65247709247d8d6e32f07111320ca14 (patch) | |
tree | cb5182d6634c9c9519dd3aa81c139693e6af5dad /tests/check | |
parent | 4e6fcd2345d208d029e46286c141a2f6b4ea5d7d (diff) |
flvmux: fix invalid write caused by using sizeof("string") as length
sizeof("foo") includes the string's NUL-terminator in the size returned,
but we're writing strings here with an explicit size at the beginning
and no NUL-terminator. In most cases using sizeof("foo") as length in
memcpy is not harmful, but it is where the string goes right at the
end of our buffer to write, since we don't allocate space for that
NUL terminator.
Diffstat (limited to 'tests/check')
0 files changed, 0 insertions, 0 deletions