• Iñaki Baz Castillo's avatar
    Fix SIGSEGV at RTC::WebRtcTransport::OnIceServerTupleRemoved() (#915) · bd1b4345
    由 Iñaki Baz Castillo 提交于
    - Fixes #883
    - `IceServer` manages a list of `TransportTuples` instances in a `std::list`. Those are **not** pointers.
    - When `IceServer` removes a tuple from the list (for different reasons), it removes it from its `std::list`, which means that the removed `TransportTuple` is **freed**. And then it notifies `WebRtcTransport` via `this->listener->OnIceServerTupleRemoved(this, removedTuple);`. Problem was that `WebRtcTransport` reads tuple data (`tuple->GetProtocol()` etc) so it's doing that in an already freed memory!, so crash.
    - Solution is to first notify the listener (`WebRtcTransport`) then remove it from the list (so free it after used).
    bd1b4345
名称
最后提交
最后更新
..
Channel 正在载入提交数据...
PayloadChannel 正在载入提交数据...
RTC 正在载入提交数据...
Utils 正在载入提交数据...
handles 正在载入提交数据...
ChannelMessageHandlers.cpp 正在载入提交数据...
DepLibSRTP.cpp 正在载入提交数据...
DepLibUV.cpp 正在载入提交数据...
DepLibWebRTC.cpp 正在载入提交数据...
DepOpenSSL.cpp 正在载入提交数据...
DepUsrSCTP.cpp 正在载入提交数据...
Logger.cpp 正在载入提交数据...
MediaSoupErrors.cpp 正在载入提交数据...
Settings.cpp 正在载入提交数据...
Worker.cpp 正在载入提交数据...
lib.cpp 正在载入提交数据...
lib.rs 正在载入提交数据...
main.cpp 正在载入提交数据...