]> git.sesse.net Git - ffmpeg/commit
avutil/avstring: Check for memory allocation error in av_escape
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 9 Mar 2021 20:25:06 +0000 (21:25 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 15 Mar 2021 05:45:07 +0000 (06:45 +0100)
commit520754476d9c2627b610fb9c508d0a85182d5a87
treeb9ac6101f94b4ee8c82e9e8bc8b1a6862dba9ad0
parentc2649d5196843db46d25a9f9f6f9272a464221b7
avutil/avstring: Check for memory allocation error in av_escape

av_bprint_finalize() can still fail even when it has been checked that
the AVBPrint is currently complete: Namely if the string was so short
that it fit into the AVBPrint's internal buffer.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavutil/avstring.c