pijul nest
guest [sign in]

Do not read past the size of the buffer (after Tokio 0.3)

[?]
Jan 7, 2021, 3:19 PM
ASD7JVBE5JDXVE7HFL2ZEEBOQZQ7WTROZNDC2EPNKQ2HNMI4LO5QC

Dependencies

Change contents

  • replacement in thrussh/src/ssh_read.rs at line 64
    [3.168179][3.879:961]()
    let result = { buf.put_slice(&id.buf[id.bytes_read..id.total]) };
    [3.168179]
    [3.168371]
    let total = id.total.min(buf.remaining());
    let result = { buf.put_slice(&id.buf[id.bytes_read..total]) };
  • replacement in thrussh/src/ssh_read.rs at line 67
    [3.168434][3.962:1021]()
    id.bytes_read += id.total - id.bytes_read;
    [3.168434]
    [3.168475]
    id.bytes_read += total - id.bytes_read;
  • replacement in thrussh/Cargo.toml at line 5
    [3.426214][2.24227:24246]()
    version = "0.32.1"
    [3.426214]
    [3.426233]
    version = "0.32.2"