[vlc-devel] [PATCH] configure: do not sanitize vptr

Filipe Cabecinhas filcab at filcab.net
Mon Dec 18 15:38:05 CET 2017


Thanks. I will try and give it a look soon.

 Filipe

On Mon, 18 Dec 2017 at 14:32, Rémi Denis-Courmont <remi at remlab.net> wrote:

> Le 18 décembre 2017 13:15:46 GMT+02:00, Filipe Cabecinhas <
> filcab at filcab.net> a écrit :
> >I do want to see if I can try it out (am expecting a problem where some
> >libraries have rtti, others haven’t). But I was trying to know which
> >platform it is, as I can’t easily go and compile VLC on all platforms
> >it’s
> >supported. Do you know the os and compiler you’ve seen this problem in?
> >Having an example output of one of the false positives you’ve seen
> >might be
> >enough to diagnose.
> >
> >Thank you,
> >
> > Filipe
> >
> >On Mon, 18 Dec 2017 at 08:28, Rémi Denis-Courmont <remi at remlab.net>
> >wrote:
> >
> >> Le 18 décembre 2017 03:05:26 GMT+02:00, Filipe Cabecinhas
> ><vlc at filcab.net>
> >> a écrit :
> >> >How broken is it, in what platform? Is rtti enabled/disabled
> >> >throughout, or
> >> >are there different rtti configurations for different libraries?
> >> >
> >> >Thank you,
> >> >
> >> > Filipe
> >> >
> >> >On Sun, 17 Dec 2017 at 20:36, Rémi Denis-Courmont <remi at remlab.net>
> >> >wrote:
> >> >
> >> >> This is notoriously broken in UBSan, causing a lot of false
> >positives
> >> >> with TagLib.
> >> >> ---
> >> >>  configure.ac | 3 +++
> >> >>  1 file changed, 3 insertions(+)
> >> >>
> >> >> diff --git a/configure.ac b/configure.ac
> >> >> index acbee6c0b1..57c2f091f3 100644
> >> >> --- a/configure.ac
> >> >> +++ b/configure.ac
> >> >> @@ -1037,6 +1037,9 @@ AS_VAR_IF(with_sanitizer, no, [], [
> >> >>          AX_APPEND_COMPILE_FLAGS([-fPIE -pie])
> >> >>          AX_APPEND_COMPILE_FLAGS([-fPIE -pie], [CXXFLAGS])
> >> >>      ])
> >> >> +    AS_IF([test -z "${with_sanitizer##*undefined*}" ], [
> >> >> +        AX_APPEND_COMPILE_FLAGS([-fno-sanitize=vptr], [CXXFLAGS])
> >> >> +    ])
> >> >>  ])
> >> >>
> >> >>  dnl
> >> >> --
> >> >> 2.15.1
> >> >>
> >> >> _______________________________________________
> >> >> vlc-devel mailing list
> >> >> To unsubscribe or modify your subscription options:
> >> >> https://mailman.videolan.org/listinfo/vlc-devel
> >>
> >> I don't know and I am not a C++ specialist. You can try yourself.
> >> --
> >> Remi Denis-Courmont
> >> _______________________________________________
> >> vlc-devel mailing list
> >> To unsubscribe or modify your subscription options:
> >> https://mailman.videolan.org/listinfo/vlc-devel
>
> The problem occurs on Debian/amd64 with Ubsan and any capable GCC version
> so far.
> --
> Remi Denis-Courmont
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20171218/e2ae1180/attachment.html>


More information about the vlc-devel mailing list