[vlc-devel] [PATCH] decoder: Access p_owner->fmt from a locked context

Rémi Denis-Courmont remi at remlab.net
Thu Sep 7 19:27:11 CEST 2017

Le torstaina 7. syyskuuta 2017, 18.21.01 EEST Hugo Beauzée-Luyssen a écrit :
> Otherwise such a race can happen:
> ==17260==ERROR: AddressSanitizer: heap-use-after-free on address
> 0x6020000b5470 at pc 0x7f1fc7a82181 bp 0x7f1f9056e320 sp 0x7f1f9056dad0
> READ of size 2 at 0x6020000b5470 thread T20
>     #0 0x7f1fc7a82180 in strdup
> (/usr/lib/x86_64-linux-gnu/libasan.so.3+0x58180)

From a quick look, there are plenty of unlocked writes to that format 
structure. This is probably just the tip of iceberg, that asan can see because 
of memory allocation.


More information about the vlc-devel mailing list