microsoft / FFmpegInterop

This is a code sample to make it easier to use FFmpeg in Windows applications.
Apache License 2.0
1.27k stars 308 forks source link

MSFT 49941670: Fix Spectre mitigations for FFmpegInterop.dll #319

Closed brbeec closed 1 month ago

brbeec commented 1 month ago

Why is this change being made?

FFmpegInterop.dll still has a BA2024.EnableSpectreMitigations BinSkim error after #318, because the SpectreMitigation build property needs to be set before Microsoft.Cpp.props is imported so that the Spectre-mitigated runtime libraries are added to the LIBPATH instead of the default runtime libraries.

What changed?

Set the SpectreMitigation build property before Microsoft.Cpp.props is imported.

How was the change tested?