[FFmpeg-devel] [PATCH 17/17] avcodec/libavcodec.v: Tighten export whitelist

Michael Niedermayer michael at niedermayer.cc
Tue Jun 15 17:38:54 EEST 2021


On Tue, Jun 15, 2021 at 12:41:33AM +0200, Andreas Rheinhardt wrote:
> Currently every symbol (with external linkage) that starts with "av" is
> exported. Yet libaom-av1 has lots of functions that are not meant to be
> exported and start with "av1_" (I counted 1236); and libvpx has
> average_split_mvs. These functions are exported if one links these
> libraries statically into a shared libavcodec.so.
> 
> Solve this by tightening the whitelist to "av_", "avcodec_", "avpriv_"
> and (as a special-case) "avsubtitle_free".
> 
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavcodec/libavcodec.v | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

sounds like a good idea

thanks!

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210615/71bfbd9b/attachment.sig>


More information about the ffmpeg-devel mailing list