]> git.sesse.net Git - mlt/commit
filter_data_show.c: check dest buffer sizes
authorMikko Rapeli <mikko.rapeli@iki.fi>
Thu, 26 Jul 2012 09:24:41 +0000 (11:24 +0200)
committerMikko Rapeli <mikko.rapeli@iki.fi>
Mon, 6 Aug 2012 16:35:13 +0000 (18:35 +0200)
commit3d2a637f044b478e962eaf704243b4c15529e67d
tree1bbf4b501f4f588d290afa7531c77b94a8060a0c
parent9015b96260b9e828167fb6069e18cd7c0b4bfbbc
filter_data_show.c: check dest buffer sizes

Fixes Coverity CID 709413: Copy into fixed size buffer (STRING_OVERFLOW)
You might overrun the 512 byte fixed-size string "temp" by copying "profile" without checking the length.
 58                        strcpy( temp, profile );

and

CID 709414: Copy into fixed size buffer (STRING_OVERFLOW)
You might overrun the 512 byte fixed-size string "result" by copying "metavalue" without checking the length.
225                                                                        strcat( result, metavalue ? metavalue : "-" );
src/modules/core/filter_data_show.c