scp of Files > 2GB on HP-UX causes "protocol error: size not delimited"

Darren Tucker dtucker at
Fri Apr 21 20:05:38 EST 2006

On Fri, Apr 21, 2006 at 11:16:40AM +0200, Tob_Sch at wrote:
> we compiled OpenSSH 4.3p2 / OpenSSL 0.9.8a / zlib 1.2.3 on different
> platforms.
> When we copy files > 2GB with "scp" on HP-UX (compiled on HP-UX 11.00 with
> gcc 3.4.3) on a filesystem with activated largefile-option, we receive
> following:
> protocol error: size not delimited

It's a bug in OpenSSH's snprintf implementation.  Description and patch

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

More information about the openssh-unix-dev mailing list