Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebTorrent: Update libdatachannel #5884

Merged
merged 2 commits into from
Jan 21, 2021

Conversation

paullouisageneau
Copy link
Contributor

@paullouisageneau paullouisageneau commented Jan 19, 2021

This PR updates libdatachannel to v0.10.4. The modifications mainly affect media transport, but there is still some ICE enhancements and fixes in libjuice that can be useful here.

For reference: #4123

@paullouisageneau paullouisageneau force-pushed the update-libdatachannel branch 2 times, most recently from 152d706 to 662382b Compare January 19, 2021 17:11
@arvidn
Copy link
Owner

arvidn commented Jan 19, 2021

Something happened on windows, causing usrsctp_import.lib to not be produced, or something like that.

Also, this error:

..\deps\libdatachannel\src\candidate.cpp(120): error C2220: the following warning is treated as an error
..\deps\libdatachannel\src\candidate.cpp(120): warning C4456: declaration of 'iss' hides previous local declaration
..\deps\libdatachannel\src\candidate.cpp(101): note: see declaration of 'iss'

@paullouisageneau
Copy link
Contributor Author

paullouisageneau commented Jan 19, 2021

Something happened on windows, causing usrsctp_import.lib to not be produced, or something like that.

The usrsctp lib was being built as a shared lib on MSVC. It should be good now.

@paullouisageneau paullouisageneau force-pushed the update-libdatachannel branch 2 times, most recently from d1768da to 59e9bef Compare January 20, 2021 10:52
@arvidn
Copy link
Owner

arvidn commented Jan 20, 2021

this is curious. I assume it's unrelated to this change:

../src/kademlia/dht_tracker.cpp:620:16: runtime error: signed integer overflow: 1810350180 + 715827882 cannot be represented in type 'int'

@paullouisageneau paullouisageneau force-pushed the update-libdatachannel branch 3 times, most recently from f955631 to 2e5108b Compare January 20, 2021 19:28
@arvidn
Copy link
Owner

arvidn commented Jan 20, 2021

@paullouisageneau
Copy link
Contributor Author

this is curious. I assume it's unrelated to this change:

../src/kademlia/dht_tracker.cpp:620:16: runtime error: signed integer overflow: 1810350180 + 715827882 cannot be represented in type 'int'

That's weird, I don't see how the change could impact the DHT.

there appears to be a use-after-free issue:

https://github.com/arvidn/libtorrent/pull/5884/checks?check_run_id=1737221565#step:7:109

Yes, it appears a mitigation on usrsctp introduced a static delete order issue which is triggered here. Changing usrsctp versions definitely caused a lot of issues!

@arvidn
Copy link
Owner

arvidn commented Jan 21, 2021

the integer overflow is unrelated and addressed here.

@paullouisageneau
Copy link
Contributor Author

Everything looks fixed now!

@arvidn arvidn merged commit 5ebc0bf into arvidn:master Jan 21, 2021
@paullouisageneau paullouisageneau deleted the update-libdatachannel branch January 21, 2021 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants