[vlc-devel] [PATCH] securetransport: Protect reading/writing with a mutex

Rémi Denis-Courmont remi at remlab.net
Thu Oct 5 20:05:47 CEST 2017


Le torstaina 5. lokakuuta 2017, 9.04.12 EEST Marvin Scholz a écrit :
> Secure Transport reading/writing is not thread safe, doing it from
> different threads results in memory corruption and other unpredictable
> behavior.

Concurrent st_Send() would still corrupt data given how the would-block error 
is handled.

But VLC does not require re-entrant send or re-entrant receive. It only 
requires that one thread can send while another thread receives (and vice 
versa).

-- 
雷米‧德尼-库尔蒙
https://www.remlab.net/



More information about the vlc-devel mailing list