websocketpp icon indicating copy to clipboard operation
websocketpp copied to clipboard

Thread sanitizer points out a data race in websocketpp::lib::net::_htonll(unsigned long)

Open karlisolte opened this issue 3 years ago • 0 comments

https://github.com/zaphoyd/websocketpp/blob/master/websocketpp/common/network.hpp#L66-L85

Write on line 75: typ = (x.c[7] == 0x01ULL) ? TYP_BIGE : TYP_SMLE; Read on line 73: if (typ == TYP_INIT) {

can happen concurrently and hence constitute a data race.

karlisolte avatar Feb 25 '22 12:02 karlisolte