tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* snprintf in libdb is useless.
@ 1997-07-10 18:43 David Krinsky
  0 siblings, 0 replies; only message in thread
From: David Krinsky @ 1997-07-10 18:43 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-07-10 18:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-07-10 18:43 snprintf in libdb is useless David Krinsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox