From: dsr () mail ! lns ! cornell ! edu (Daniel S ! Riley)
To: tru64-unix-managers
Subject: warning about SUMMARY: snprintf()
Date: Thu, 05 Mar 1998 22:09:16 +0000 [thread overview]
Message-ID: <96078701111295.tru64-unix-managers.marc@archive.invalid> (raw)
Tim Winders <twinders@SPC.cc.tx.us> writes:
> As it turns out, Digital Unix 4.0D DOES have snprintf() as part of the
> /usr/lib/libdb.a library. I only had to include that library and
> everything is working great!
I'm going to violate list protocol for a moment for a security
warning:
Versions of Digital Unix prior to 4.0D have a *dummy* snprintf() in
libdb.a which discards the length limit and just does a sprintf.
Since snprintf() is often used for security reasons (to avoid buffer
overrun attacks), use of this dummy snprintf() could compromise the
security of your system. At the very least, it won't have the
behavior the programmer expected.
Fortunately, it looks like Digital fixed this in 4.0D (yay), so using
the snprintf() in libdb.a on 4.0D is safe; using the snprintf() from
libdb.a in previous versions of Digital Unix is not safe and should
be avoided.
--
Dan Riley dsr@mail.lns.cornell.edu
Wilson Lab, Cornell University <URL:http://www.lns.cornell.edu/~dsr/>
"History teaches us that days like this are best spent in bed"
reply other threads:[~1998-03-05 22:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox