Commit Graph

1178 Commits

Author SHA1 Message Date
Cassondra Foesch a716847f09 actually, why not a better safe-guard 2021-07-02 08:49:51 +00:00
Cassondra Foesch a4ed48f12a this nil-pointer safeguard has itself a nil-pointer deref, so it is useless 2021-07-02 08:42:04 +00:00
Cassondra Foesch 35cb1f0616
Merge pull request #445 from pkg/bugfix/windows-server-paths
[bugfix] Windows paths don’t work with Server
2021-06-30 17:18:14 +00:00
Cassondra Foesch ac2cd6e5ca
Merge pull request #447 from alanskind/master
fix typo
2021-06-30 17:07:29 +00:00
Cassondra Foesch d9a11390f5
Merge pull request #443 from pkg/patch/sequential-concurrent-readat-requests
[bugfix] Sequentially issue read requests in ReadAt the same as WriteTo
2021-06-30 17:07:13 +00:00
qianqian 0e4bd2a661 fix typo 2021-06-30 23:09:07 +08:00
Cassondra Foesch 71618243c4 deconvert encoded paths on windows servers 2021-06-29 15:16:15 +00:00
Cassondra Foesch d733da7b44 [bugfix] plan9 compile fails because of typo 2021-06-29 15:15:13 +00:00
Cassondra Foesch 6617a3a1aa [bugfix] short reads indicate EOF 2021-06-28 18:27:13 +00:00
Cassondra Foesch 120b9759fe concurrent reads: use sequential requests for ReadAt as well 2021-06-28 15:07:47 +00:00
Sebastien Rosset (serosset) 3b8042dfc0 Use go errors instead of github.com/pkg/errors 2021-06-04 14:18:41 -07:00
Nicola Murino 5b98d05076
Merge pull request #439 from pkg/feature/ReadFromWithConcurrency
Export a ReadFromWithConcurrency function that permits ensuring concurrency usage.
2021-05-22 19:07:36 +02:00
Cassondra Foesch de44fbbc9d
Merge pull request #436 from pkg/patch/sequential-concurrent-read-requests
[bugfix] Sequentially issue read requests, process results concurrently
2021-05-22 15:46:17 +00:00
Cassondra Foesch 9744aee3eb
Merge pull request #438 from pkg/patch/bugfixes-to-filexfer
Pre-Merge filexfer Bugfixes
2021-05-22 15:45:52 +00:00
Cassondra Foesch 61f5f29b25 Export a ReadFromWithConcurrency function that permits ensuring concurrency usage 2021-05-22 15:42:42 +00:00
Cassondra Foesch 340dc5e3f6 pre-merge filexfer bugfixes 2021-05-22 15:00:04 +00:00
Cassondra Foesch ba123434b8
Merge pull request #437 from drakkan/realpath
request server: add an optional RealpathFileLister interface
2021-04-28 16:41:42 +00:00
Nicola Murino 0b43101c5b fix as per review 2021-04-27 18:06:39 +02:00
Nicola Murino db2d41339c request server: add an optional RealpathFileLister interface
This allow to customize the responses for SSH_FXP_REALPATH requests
and so implementing features like a start directory
2021-04-27 11:08:29 +02:00
Cassondra Foesch d5fa851154 sequentially issue read requests, process results concurrently 2021-04-26 16:51:04 +00:00
Nicola Murino 2b80967078 update deps and raise go version to 1.15 2021-04-24 10:34:37 +02:00
Nicola Murino f8d38c99d3 server integration test: add Windows sftp server path 2021-04-24 10:27:59 +02:00
Nicola Murino 299240408d
Merge pull request #435 from pkg/bugfix/concurrency-overflow-on-32bit
bugfix: int64 math overflows possible on 32-bit architectures
2021-04-24 09:26:29 +02:00
Cassondra Foesch 6b08f4a44a document why the cast to int can no longer overflow an int 2021-04-23 08:55:35 +00:00
Cassondra Foesch b63107c68c better safer maths 2021-04-22 23:46:11 +00:00
Cassondra Foesch 9a42bd2223 bugfix: int64 math overflows possible on 32-bit architectures 2021-04-22 23:26:15 +00:00
Nicola Murino 197384b8ce
Merge pull request #430 from pkg/refactor/encoding-ssh-filexfer
Encoding SSH filexfer
2021-04-20 13:57:06 +02:00
Cassondra Foesch 0e87b41d75 move to internal/ until we finalize the package 2021-04-20 08:37:33 +00:00
Cassondra Foesch bc27e0c607
Merge pull request #425 from pkg/bug/write-to-unexpected-channel-closed
[Bugfix] WriteTo write work channel should never be closed…
2021-04-13 09:36:23 +00:00
Nicola Murino 16ca7e3032
Merge pull request #428 from drakkan/readfrom
ReadFrom: check also Size and Stat interfaces to calculate the size
2021-04-12 17:04:12 +02:00
Nicola Murino 6782c5448f ReadFrom: check also Size and Stat interfaces to calculate the size 2021-04-11 18:14:59 +02:00
Cassondra Foesch 2c3f761948 bugfix: these channels should never be closed 2021-03-29 22:47:07 +00:00
Cassondra Foesch dcebc58faf encoding: use cap(b), only reallocate for cap(b) < 4, name magic constant 2021-03-25 14:14:53 +00:00
Cassondra Foesch 47ea397efe encoding: address slice alias concerns with documentation, and/or cloning 2021-03-24 20:29:37 +00:00
Cassondra Foesch c496ef994c openssh extensions: do not auto-register extended packet types 2021-03-24 20:25:06 +00:00
Cassondra Foesch 443b3a1942 encoding: prevent duplicate extended packet type registrations 2021-03-24 20:24:30 +00:00
Nicola Murino f5f52ff56b
Merge pull request #419 from greatroar/fix-recv-panic
Fix panic when connection dropped in the middle of the sid
2021-03-23 21:49:58 +01:00
Nicola Murino c2220a69b3 really fix the fuzzer 2021-03-23 21:47:04 +01:00
Nicola Murino ec19f0847c fuzz: rename sink to sinkfuzz
sink is already defined in client_test
2021-03-23 08:20:45 +01:00
Cassondra Foesch 05ef673724 encoding: move length const to exported value, I don't expect many to use such low limits. 2021-03-22 16:21:58 +00:00
Cassondra Foesch fcaacbb4ef encoding: MarshalPacket shall take a buffer hint now 2021-03-22 16:12:42 +00:00
Cassondra Foesch 8b9e1515fa encoding: prefer ReadDir-style names 2021-03-22 15:34:19 +00:00
Cassondra Foesch 3f02a54c00 encoding: Status should also implement Error 2021-03-22 15:34:19 +00:00
Cassondra Foesch 716c28cf5b encoding: address further godoc concerns 2021-03-22 15:34:12 +00:00
Cassondra Foesch caecc84def encoding: it is no longer intended that Buffer/RawPacket would be pooled, the byte slices should be 2021-03-22 12:22:56 +00:00
Cassondra Foesch ae26d72513 encoding: address documentation and minor gotchas in Buffer 2021-03-22 12:21:18 +00:00
Cassondra Foesch e040f49a39 encoding: add openssh extended types 2021-03-21 18:23:46 +00:00
Cassondra Foesch 9019ffcb6d encoding: golint 2021-03-21 18:18:37 +00:00
Cassondra Foesch 7e701b506d encoding: define our own FileMode conforming to spec 2021-03-21 18:16:53 +00:00
Cassondra Foesch 4c0c5ec7d9 enocoding: refactor extended packets 2021-03-21 18:02:15 +00:00