9fans archive / 1996 / 09 / 52 /    prev next

From: Scott Schwartz schwartz@gal...
Subject: ftpfs bug
Date: Thu, 26 Sep 1996 12:20:51 -0400

In proto.c:/passive the first call to snprint writes to msg from
strings that point into msg.  (This usually went unnoticed because most
ftp servers put a bunch of random text ahead of the bits we need to
read, so it could be overwritten without catastrophe.)

Suggested fix: write the dial string to a different array.