OpenBSD CVS

CVS log for src/usr.bin/sudo/Attic/zero_bytes.c


[BACK] Up to [local] / src / usr.bin / sudo

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_3_6_BASE


Revision 1.1 / (download) - annotate - [select for diffs], Mon Jan 5 00:23:57 2004 UTC (20 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5

Get rid of volatile variables that were a vain attempt to prevent the
compiler from optimizing away memset() calls.  Instead, add a new function,
zero_bytes(), to clear buffers with sensitive contents.
Taken from the sudo cvs repo, man.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.