[FFmpeg-cvslog] avdevice/dshow_filter: Use wcscpy_s()
Michael Niedermayer
git at videolan.org
Wed Jul 24 17:50:07 EEST 2024
ffmpeg | branch: release/4.3 | Michael Niedermayer <michael at niedermayer.cc> | Mon May 27 01:34:48 2024 +0200| [359893d8291bc9ec3636780170bd0bcbc18ea453] | committer: Michael Niedermayer
avdevice/dshow_filter: Use wcscpy_s()
Fixes: CID1591929 Copy into fixed size buffer
Sponsored-by: Sovereign Tech Fund
Reviewed-by: Roger Pack <rogerdpack at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit daf61dddc8e27424c320d5c3abe3e0c5182cd5c0)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=359893d8291bc9ec3636780170bd0bcbc18ea453
---
libavdevice/dshow_filter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavdevice/dshow_filter.c b/libavdevice/dshow_filter.c
index db4bff60f8..7be560ca61 100644
--- a/libavdevice/dshow_filter.c
+++ b/libavdevice/dshow_filter.c
@@ -146,7 +146,7 @@ libAVFilter_JoinFilterGraph(libAVFilter *this, IFilterGraph *graph,
this->info.pGraph = graph;
if (name)
- wcscpy(this->info.achName, name);
+ wcscpy_s(this->info.achName, sizeof(this->info.achName) / sizeof(wchar_t), name);
return S_OK;
}
More information about the ffmpeg-cvslog
mailing list