Giter Site home page Giter Site logo

sctp-proto's Introduction

WebRTC.rs

License: MIT/Apache 2.0 Discord

A pure Rust implementation of SCTP in Sans-IO style

sctp-proto's People

Contributors

algesten avatar davibe avatar rainliu avatar u-03c9 avatar xnorpx avatar yngrtc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sctp-proto's Issues

attempt to add with overflow

0.1.7/src/queue/reassembly_queue.rs:337:17:
attempt to add with overflow
stack backtrace:
0: rust_begin_unwind
at ./rustc/b51b6e8215aff52b3bb5afa74b3b4e8358600ca0/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at ./rustc/b51b6e8215aff52b3bb5afa74b3b4e8358600ca0/library/core/src/panicking.rs:72:14
2: core::panicking::panic
at ./rustc/b51b6e8215aff52b3bb5afa74b3b4e8358600ca0/library/core/src/panicking.rs:144:5
3: sctp_proto::queue::reassembly_queue::ReassemblyQueue::read
4: sctp_proto::association::stream::Stream::read
5: str0m::sctp::RtcSctp::do_poll
6: str0m::sctp::RtcSctp::poll

add with overflow stream.rs:456:13

Hitting a panic here:

thread 'tokio-runtime-worker' panicked at 'attempt to add with overflow', /secret_path_here/d5cf6c4d7dd7baa0/sctp-proto-0.1.4/src/association/stream.rs:456:13

   // RFC 4960 Sec 6.6
    // Note: When transmitting ordered and unordered data, an endpoint does
    // not increment its Stream Sequence Number when transmitting a DATA
    // chunk with U flag set to 1.
    if !unordered {
        self.sequence_number += 1;
    }

This should probably be a wrapping add?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.