From: David Krinsky <krinsky () hcs ! harvard ! edu>
To: tru64-unix-managers
Subject: snprintf in libdb is useless.
Date: Thu, 10 Jul 1997 18:43:53 +0000 [thread overview]
Message-ID: <96078614710331.tru64-unix-managers.marc@archive.invalid> (raw)
Some time last summer, there was mention on this list of the fact that
there is no snprintf in Digital Unix's libc. It was mentioned that this
function, useful for preventing buffer overruns, could be found and linked
in from libdb.so, and that it would likely be moved to libc in Digital Unix
4.2.
Please be advised that, so far as I can tell, the version of snprintf in
libdb is a wrapper to sprintf which completely ignores the length field and
blithely does a sprintf; it is thus useless.
Since this is use of snprintf is not to my knowledge officially supported,
I can hardly ask for a fix; however, it is definitely something to be
aware of, and it makes the need for a functional snprintf in libc much more
urgent.
David Krinsky
System Administrator
Harvard Computer Society
reply other threads:[~1997-07-10 18:43 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