summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/wcscpy.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2010-03-10It's unsetenv() that doesn't like `=' in the argument, not putenv().kili1-3/+3
ok millert@
2010-03-04cherrypick patch from OpenSSL 0.9.8m:djm7-14/+20
*) Always check bn_wexpend() return values for failure. (CVE-2009-3245) [Martin Olsson, Neel Mehta]
2010-02-27Fix the atelnet() function, which was wrong in several ways.nicm1-13/+13
Pointed out by obsd at happyjack.org, fix based on a diff from kili@. ok deraadt
2010-02-23Fix the worst among the fatal block-nesting issues we have in our tree,schwarze1-4/+4
in the end simply changing Oo Xo Oo Oc Oc Xc to Oo Xo Oo Oc Xc Oc. I tried five different variants without the Xo/Xc, because there is no real reason why Xo/Xc should be needed here, and two additional variants with Xo/Xc that look more pretty than what i'm now committing. All seven alternatives work both with mandoc and groff 1.20.1, but all seven trigger various different bugs in our old groff, and we still need to remain compatible with our old groff right now. ok jmc@ sobrado@
2010-02-18Our groff does not handle all cases of nested displays properly, soschwarze1-6/+6
resolve the contradiction in the manual whether it's allowed or not in favour of "not allowed" for now, shelving my diff to support nested displays in mandoc(1) for later consideration. Found by and unbreaking the build with mandoc(1). Feedback and OK jmc@
2010-02-14Sync with current state of the tree.miod1-2/+2
2010-02-11Test mkstemps() tooguenther1-26/+87
2010-02-11Add a regression suite for mkstemp(), verifying that it neither overrunsguenther3-2/+116
no underruns the supplied template buffer, that it can generate names that don't contain any X's, and that all open() calls that pass O_CREAT also pass O_EXCL
2010-02-08Use size_t in appropriate places; fixes sorting of big arrays;otto1-9/+10
after the diff was written, I made it similar to the freebsd fix of the same code; pr6287 ok millert@ guenther@
2010-02-08use size_t to index arrays; avoids big array bugs; ok millert@ guenther@otto1-1/+1
2010-02-03Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentmiod5-23/+25
files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@
2010-01-31add a fix from OpenSSL CVS for SA38200.jasper2-20/+14
"Modify compression code so it avoids using ex_data free functions. This stops applications that call CRYPTO_free_all_ex_data() prematurely leaking memory." looks ok to markus@
2010-01-25stucture -> structure;jmc1-3/+3
2010-01-13New options 'S', as a shorthand for the options most suitable as anotto2-3/+9
extra safeguard (FGJ). Idea from deraadt@; ok deraadt@ dlg@
2009-12-31new ipsca root.dlg1-0/+108
2009-12-31ipsca has expireddlg1-51/+0
2009-12-29replace a few remaining UNIX terms with .Ux macros; this diffsobrado1-4/+4
completes the changes from Oct 22.
2009-12-16save calls to arc4random() by using a nibble at a time; not becauseotto1-24/+27
arc4random() is slow, but it induces getpid() calls; also saves a bit on stirring efforts
2009-12-15No point in refreshing the pid from inside arc4_stir() when thatguenther1-6/+15
doesn't test it, so factor out the two places that test it into a routine and do the refreshing there. With this, arch4random_buf() doesn't trigger superfluous calls to getpid() when filling large buffers. ok deraadt@, "looks nicer indeed" otto@
2009-12-14Add a test for sleep(3), to verify that it both (a) returns zero when itguenther2-0/+97
completes, and (b) returns the unslept time in seconds when interrupted
2009-12-11plug a memory leak; found by parfait, ok djmderaadt1-0/+2
2009-12-07Make userland malloc use __LDPGSZ granularity on mips, regardless of themiod1-1/+3
actual kernel page size.
2009-12-05missing word;jmc1-3/+3
from trhodes@freebsd, r200095;
2009-11-27Switch the chunk_info lists to doubly-linked lists and use the queueotto1-51/+34
macros for them. Avoids walking the lists and greatly enhances speed of freeing chunks in reverse or random order at the cost of a little space. Suggested by Fabien Romano and Jonathan Armani; ok djm@
2009-11-27Don't forget to fill region from the cache with junk if needed in one case;otto1-1/+3
from Fabien Romano and Jonathan Armani
2009-11-27No need to clear a mmapped region; from Fabien Romano and Jonathanotto1-2/+1
Armani
2009-11-21Add a (hopefully) comprehensive regression test of how stdio functionsguenther3-2/+264
affect stream orientation
2009-11-19Add regression tests for stdio threading. Originally by blambert withguenther15-1/+511
some further hacking by me
2009-11-18More shrinkage, a bit for ramdisks but mostly for static binaries:guenther5-392/+445
- wrap with #ifndef NO_LOG_BAD_DNS_RESPONSES libc code that uses p_class() and p_type() for diagnostics, then add that define to libstub to avoid pulling in res_debug_syms.o - split rcmd() and ruserok() into separate files, as nothing uses both - split readdir_r() to its own file - split syslog_r() from syslog(), as the latter needs localtime(); many binaries no longer need to pull in all the time code after this; switch from usleep() to nanosleep() while we're at it (The profit of analysis of -Wl,-M,--cref output) Chops 888kB from /bin and /sbin on i386 ok deraadt@, miod@
2009-11-10pull Ben Lauries blind prefix injection fix for CVE-2009-3555 frommarkus10-12/+40
openssl 0.9.8l; crank minor version; ok djm@ deraadt@; initially from jsg@
2009-11-02permit -DMALLOC_STATS to compile againtodd1-2/+2
noticed by Jonathan Armani & Fabien Romano ugh+ok otto@
2009-10-31s/Mhz/MHz/, MHz is a multiple of the SI unit hertz (whose symbol is Hz).sobrado4-8/+8
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt3-30/+3
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-22write UNIX-domain in a more consistent way; while here, replace asobrado1-5/+5
few remaining ".Tn UNIX" macros with ".Ux" ones. pointed out by ratchov@, thanks! ok jmc@
2009-10-22use the UNIX-related macros (.At and .Ux) where appropriate.sobrado1-4/+8
ok jmc@
2009-10-20Check mmap return value against MAP_FAILED not NULL.pirofti1-2/+2
Okay deraadt@, otto@.
2009-10-16teach gdtoa & its subroutines that malloc can fail; in which casemartynas2-2/+6
ecvt, fcvt, gcvt, *printf, strtof, strtod, strtold act per ieee 1003.1. after these massive changes, remove unused files which would not work now. reported by Maksymilian Arciemowicz; ok theo
2009-10-12another cert that makes godaddy.com and launchpad.net (among others) happy.fgsch1-0/+51
found by Guillaume Protet (guillaume dot protet at mortheres dot info) while testing bzr update. deraadt@ ok
2009-10-10rewrite the history section, prompted by Paul Stoeber; ok deraadt@ jmc@otto1-25/+28
2009-10-08Do not write "Connection to ... succeeded" messages to stdout.mpf1-3/+5
OK gilles, rainer, millert, deraadt.
2009-09-14doing numeric lookups without specifying an ai_socktype fails no longer.claudio1-2/+8
Update the expected answers accordingly. Found by david, OK fgsch
2009-09-02make getaddrinfo(3) accept numeric servname when ai_socktype is notfgsch1-4/+2
specified in hint or hints is NULL. claudio@ ok
2009-08-16replace ".Ar file ..." with ".Ar" whenever possible.sobrado1-27/+27
ok jmc@
2009-08-13various MLINK fixes from Alan R. S. Bueno;jmc1-3/+3
2009-08-08remove expired certificates and add startcom ltd.fgsch1-839/+148
beck@ ok
2009-08-07pull string for memcpy; ok hshoexer@martynas2-2/+4
2009-07-09promote correct style for error checkingeric1-7/+7
ok tedu@ deraadt@ krw@
2009-06-25typo;jmc1-3/+3
2009-06-21fix rcs ids. ok sthen@martynas1-1/+1
2009-06-21abs conforms c99 -> imaxabs conforms c99. ok millert@martynas1-3/+3