• 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
名称
最后提交
最后更新
..
deps 正在载入提交数据...
fuzzer 正在载入提交数据...
include 正在载入提交数据...
scripts 正在载入提交数据...
src 正在载入提交数据...
subprojects 正在载入提交数据...
test 正在载入提交数据...
.clang-format 正在载入提交数据...
.clang-tidy 正在载入提交数据...
Cargo.toml 正在载入提交数据...
Dockerfile 正在载入提交数据...
Makefile 正在载入提交数据...
build.rs 正在载入提交数据...
meson.build 正在载入提交数据...
meson_options.txt 正在载入提交数据...