aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/qsvdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-23 00:31:17 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:56 +0100
commitb93ccb8d59fc4d079e9902fd5544845c686ca86a (patch)
tree08b9c3e9ff3603e67d09ec50e0599796527fc4b3 /doc/examples/qsvdec.c
parent3b3d85c26eaeaa7fa960e3268520b2af34035936 (diff)
downloadffmpeg-b93ccb8d59fc4d079e9902fd5544845c686ca86a.tar.gz
avfilter/graphparser: Don't set pointer to one beyond '\0' of string
This happened in parse_link_name() if there was a '[' without matching ']'. While this is not undefined behaviour (pointer arithmetic one beyond the end of an array works fine as long as there are no accesses), it is potentially dangerous. It currently isn't (all callers of parse_link_name() treat this as an error and don't access the string any more), but making sure that this will never cause trouble in the future seems nevertheless worthwhile. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit f33faa5b9bfb288f83db034fa1f8719ab8a994c6)
Diffstat (limited to 'doc/examples/qsvdec.c')
0 files changed, 0 insertions, 0 deletions