pijul nest
guest [sign in]

Fixing an index out of bounds

[?]
Jan 11, 2021, 12:27 PM
36MDIUWTTKJB4XYTBT6E36SYGFONZLR66H3OMVGWUUXJEC2EMH3AC

Dependencies

  • [2] ASD7JVBE Do not read past the size of the buffer (after Tokio 0.3)
  • [3] 7FRJYUI6 Reboot because of a bad change
  • [4] 634OYCNM Tokio 0.3
  • [5] ELRPPXSG Fixing conflicts

Change contents

  • replacement in thrussh/src/ssh_read.rs at line 64
    [3.168179][2.0:59]()
    let total = id.total.min(buf.remaining());
    [3.168179]
    [2.59]
    let total = id.total.min(id.bytes_read + buf.remaining());