pkg / sftp

SFTP support for the go.crypto/ssh package
BSD 2-Clause "Simplified" License
1.5k stars 380 forks source link

bugfix: there may be a nil pointer dereference #449

Closed alanskind closed 3 years ago

alanskind commented 3 years ago

I wonder if it was designed to be that way or if this is a bug. Thanks a lot!

puellanivis commented 3 years ago

Closing in favor of https://github.com/pkg/sftp/pull/450 which first removed the condition, but then added a better safe-guard that asserts the stronger requirement about the behavior of the bufPool that p.blen must be a postive integer.