• 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
名称
最后提交
最后更新
.github 正在载入提交数据...
art 正在载入提交数据...
doc 正在载入提交数据...
node 正在载入提交数据...
rust 正在载入提交数据...
worker 正在载入提交数据...
.gitattributes 正在载入提交数据...
.gitignore 正在载入提交数据...
.npmrc 正在载入提交数据...
CHANGELOG.md 正在载入提交数据...
Cargo.toml 正在载入提交数据...
LICENSE 正在载入提交数据...
README.md 正在载入提交数据...
npm-scripts.js 正在载入提交数据...
package.json 正在载入提交数据...