dhartmei
3e0b53c913
Back it out, it breaks something in perl (seen with spamassassin), debug
first.
22 years ago
deraadt
968c135966
permit calloc(0, N) and calloc(N, 0) -- malloc(0) does the right thing; markus miod ok
22 years ago
deraadt
08616e9a96
return failure if integer overflow happens. sigh; too people had to
help get this right.
22 years ago
dhartmei
b7839b1965
Replace atexit handler. mprotect() the pages so an attempt to modify the
function pointers from the outside will segfault. Idea, hints and feedback
from deraadt. ok deraadt.
22 years ago
millert
3a97f67ea7
Convert to ANSI function headers and make 'ch' argument int, not char.
Noticed by deraadt@
22 years ago
millert
8605e7d157
Replace strtou?q() with the more standard strtou?ll(), using weak
aliases to fake up strtou?q(). espie@ OK.
22 years ago
deraadt
f1eab69159
unsigned vs unsigned int
22 years ago
deraadt
1861c91a56
pid_t cleanup
22 years ago
deraadt
7c4d34d5bc
try to use strlcpy and snprintf more; ok various
22 years ago
millert
d67b87ef2f
For strncpy(), dst is not NUL terminated if strlen(src) >= len.
Also fix a typo; adapted from a patch by Moritz Jodeit
22 years ago
mpech
93a232f650
Initial cleanup:
o) remove extra space in the end of line;
o) remove extra blank lines in the end of file;
o) remove .Pp before .Ss;
o) CAVEAT -> CAVEATS;
o) fix usage of .Fa;
o) <blank-line> -> .Pp;
o) wrap long lines;
millert@ ok
22 years ago
pvalchev
5ca0ee4656
wierd -> weird
22 years ago
miod
fba1d2eff0
deraadt@ objects to the caveat remark, so remove it.
23 years ago
miod
2e6a70b044
Slightly improve wording and punctuation.
23 years ago
miod
b796301032
Add a caveat section pointing out that people affecting the return value
of getopt() to char variables instead of int lose on arches where char is
unsigned by default.
Clean the example by not pasting parts of <unistd.h> into it, and by not
using atoi(3).
23 years ago
millert
d0f45c1a97
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
23 years ago
millert
959b08f109
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
23 years ago
millert
b68c09e067
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
23 years ago
mickey
df85ac99b5
fix the history refs
23 years ago
fgsch
f9ed61c293
THREAD_UNLOCK() on error before returning; millert@ ok.
23 years ago
marc
a1df4e69bd
compile sparc64 version of sha1.go with -O0, too. OK jason@
23 years ago
millert
b6c954318e
If the user passes in "" as the string to resolve the lstat() will
fail anyway so check for that. Also convert "." to "" since that
way we avoid the lstat() (which we don't need) and the subsequent
chdir() and some dir checks.
23 years ago
miod
f782f2c5fe
Two functions can return errors here, not just one.
23 years ago
deraadt
2ebe322d0c
when strerror() has an Unknown error, also set EINVAL
23 years ago
deraadt
7e48f32113
alloca cannot check if the allocation is valid. mention the consequences; millert ok
23 years ago
tdeval
77a7c73d5c
correct an alignment mis-conception for malloc(0) returned regions.
OK deraadt@
23 years ago
deraadt
656331798e
document how malloc(0) blobbies are stored, and their character
23 years ago
deraadt
9462d0d22b
2nd param is const
23 years ago
millert
102be945f2
Comment out info on U (utrace) malloc option since we don't support it
on OpenBSD.
23 years ago
mickey
c3e7e8407a
remove dangling spaces and tabs
23 years ago
tdeval
9b9efbb25c
Grammar. Thanks markus@
23 years ago
tdeval
d98536c135
mprotect allocations sized at 0 bytes. This will cause a fault for access
to such, permitting them to be discovered, instead of exploited as the ssh
crc insertion detector was. Idea by theo, written by tdeval.
23 years ago
deraadt
7c24a87eca
fix docs; tedu@heorot.stanford.edu
23 years ago
millert
ac4382dfde
add RFC 3174 to SEE ALSO section
23 years ago
markus
8b85012334
sync with rmd160.h
23 years ago
markus
3bb1d7ac89
new rmd160 implementation. based on
ftp://ftp.rsasecurity.com/pub/cryptobytes/crypto3n2.pdf, ok deraadt@
23 years ago
drahn
2ca2f70119
Also build the .so version of sha1 without optimization.
ok jason@
23 years ago
jason
923842bb6f
get previous right...
23 years ago
jason
9f6d5d1ad2
add hack for sha1.po on sparc64, too
23 years ago
espie
aecf1306d9
K&R promotion is not the whole story. Make things explicit.
23 years ago
mpech
68ddad385f
Initial idea from aaron@: Last char of .Xr group in SEE ALSO section should
be a single digit. Powered by mantoya@.
millert@ ok.
23 years ago
mickey
2660cbbcf5
make debug libs build again
23 years ago
millert
734e2e00f3
Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their POSIX counterparts.
23 years ago
art
7c3186ea3c
gcc hangs when compiling sha1 on sparc64, workaround.
23 years ago
heko
52b680a55c
#(endif|else) foo is incorrect, make it #endif /* foo */
deraadt@ ok
23 years ago
mpech
8038b2e506
o) We always close .Bl and .Bd tags;
o) .Sh AUTHOR -> .Sh AUTHORS;
o) We don't like .Pp before/after .Sh;
o) We don't like .Pp before/after .Rs/.Re;
o) NetBSD -> .Nx;
o) OpenBSD -> .Ox;
millert@ ok
23 years ago
millert
f4dff807f0
Minor style pedentry from ben@arbor.net plus some of my own and sync
libkern and libc versions.
23 years ago
mpech
a7678ef179
clean up.
millert@ ok
23 years ago
deraadt
71d2e52579
a first pass at -Wall
23 years ago
lebel
60ef74bf70
use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.
23 years ago