Fixes: CID1591929 Copy into fixed size buffer
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <[email protected]>
---
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 4642ac077c5..2122c846262 100644
--- a/libavdevice/dshow_filter.c
+++ b/libavdevice/dshow_filter.c
@@ -135,7 +135,7 @@ long WINAPI ff_dshow_filter_JoinFilterGraph(DShowFilter
*this, IFilterGraph *gra
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;
}
--
2.45.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".