summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-07-31 20:25:17 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-07-31 23:54:47 +0100
commit93690bfdd65247709247d8d6e32f07111320ca14 (patch)
treecb5182d6634c9c9519dd3aa81c139693e6af5dad /tests
parent4e6fcd2345d208d029e46286c141a2f6b4ea5d7d (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')
0 files changed, 0 insertions, 0 deletions