summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/wcscpy.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-04-02Zero state buffers on return. OK deraadt@millert1-1/+5
2008-03-19bcmp(3) tries to return length, which is a size_t, as an int.ray1-4/+4
Instead, just return 1 if there is a difference. Found by lint. OK millert.
2008-03-16- add NAME entries for arc4random_buf and arc4random_uniformjmc1-2/+4
- simplify a macro call (Do/Dc -> Dq)
2008-03-16Add missing MLINKSderaadt1-1/+2
2008-03-16diff from djm@ committed at his request:otto2-3/+84
introduce two new APIs for requesting strong random numbers: arc4random_buf() - fill an arbitrary memory range with random numbers arc4random_uniform() - return a uniformly distributed random number below a specified upper bound, avoiding the bias that comes from a naive "arc4random() % upper_bound" construction. these mirror similarly-named functions in the kernel; lots of discussion deraadt@ mcbride@
2008-03-15- len is size_t, but n uses len and is an int. Matching those typesray1-6/+12
should be good, plus it prevents weird things from happening if len > INT_MAX. - Since n is now size_t, compare it against 0 instead of >= 0. - temp is used to store individual bytes, so use char instead (matches fp and tp). - millert noted that the comma operator may not guarantee order of execution, so replace with semicolons. Found by lint, OK millert.
2008-03-15Convert c to unsigned char, like it says in the manual. Also addray1-4/+3
cast to make it explicit. Found by lint, OK millert.
2008-02-26fix memory leak (in one case of unaligned buffers); from Markus Kvetterderaadt2-4/+6
ok markus
2008-02-20use pgfree pool like other code does to reserve free list slots.otto1-6/+6
prevents a few "cannot free mem because i need mem to free mem" scenarios (one found by weingart@). ok weingart@ millert@ miod@
2008-01-01- make arc4random*() functions thread safe. Use a custom spinlock functionkurt2-42/+69
instead of the generic pthread macros since free(3) uses __arc4_getbyte() when freeing small sized allocations and the generic pthread macros call malloc(3). - eliminate passing pointers to a static variable with global scope (rs) for additional code clarity and reduction. - shlib minor bumps for libc and libpthread due to new functions. From andreas@ with some bits from me. okay tedu@ marc@ w/some spot checking from millert@
2007-12-01relevant updates/fixes up to openssl-0.9.8g;jmc1-31/+45
2007-11-27typos; ok jmc@martynas1-2/+2
sys/dev/pci/pciide.c from naddy@
2007-11-19fix misleading comment; the _MUTEX_LOCK/_MUTEX_UNLOCK macros work withkurt1-2/+2
both static and non-static mutexs.
2007-11-13Put limits.h in front of stdlib.h as style(9) recommends.tobias2-8/+8
OK millert@
2007-11-11strtod may return HUGE_VAL on overflow, which is defined in math.h.tobias1-2/+3
Therefore added math.h to SYNPOSIS. OK millert@
2007-10-31Add parentheses to avoid warning:chl1-2/+2
"suggest parentheses around && within ||" ok millert@
2007-10-25Make sure to use unique target names so that make -j does not break;miod1-25/+25
feedback and ok espie@
2007-10-22Only test one condition per invocation flavour, instead of testing allmiod1-27/+29
of them with exceptions disabled and then only one with exceptions enabled. ok kettenis@
2007-10-20Give more details on failure.miod1-8/+8
2007-10-20Make this work on 64 bit platforms by using strlen() instead of sizeof()...miod1-1/+1
worked by accident.
2007-10-11use RRSIG instead of SIG for DNSSEC. ok djm@jakob3-6/+7
2007-10-10Replace use of strcpy(3) and other pointer goo inmoritz2-30/+24
SSL_get_shared_ciphers() with strlcat(3). ok deraadt@ markus@
2007-10-08add a RETURN VALUES section.pyr1-9/+9
ok jmc@
2007-09-27Fix off-by-one buffer overflow in SSL_get_shared_ciphers().moritz2-22/+22
From OpenSSL_0_9_8-stable branch. ok djm@
2007-09-19add HISTORY; shortened version of diff from Ilya A. Kovalenkojmc1-2/+7
ok millert
2007-09-17Check snprintf(3) return value for error or truncation.moritz1-1/+5
Mostly path construction, where truncation could be bad. ok and input from deraadt@ millert@ ray@
2007-09-12fix format strings, sizeof() does not return an intotto1-5/+5
2007-09-10Proper use of fseek/fseeko macros.tobias2-2/+2
OK joris@, otto@
2007-09-09use strcspn to properly overwrite '\n' in fgets returned bufferchl2-4/+4
ok moritz@ gilles@
2007-09-07Synced atomicio implementation in nc and sendbug with ssh.tobias2-13/+24
OK djm@, joris@, ray@
2007-09-05Add missing header to avoid warningchl1-1/+2
ok millert@ ray@
2007-09-05no need to talk about bits; ok millert jmcderaadt1-3/+3
2007-09-03Update free(3) section--we use mmap()/munmap(), not brk().millert1-4/+6
Based on a diff from Mike Belopuhov. OK jmc@
2007-09-03remove trailing whitespace;jmc1-2/+2
2007-09-03Adapt atexit() regress to recent changes and add __cxa_atexit() regress.millert11-5/+196
__cxa_atexit() regress from kurt@
2007-09-03Add __cxa_atexit() support for gcc3. This provides support for shared ↵millert4-30/+108
object destructors called at dlclose() time. Inspired by similar changes in FreeBSD and NetBSD.
2007-09-03add recaloc(3)millert3-20/+62
2007-09-03add memrchr(3)millert3-5/+63
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt6-12/+12
2007-08-21http://openssl.org/news/patch-CVE-2007-3108.txt; ok pval, deraadtmarkus2-26/+130
2007-08-08Clarify the example about avoiding overflow. OK ray@ deraadt@millert1-3/+3
2007-08-08Show how to use strcspn(3) to trim newlines.ray1-2/+14
OK jmc and millert.
2007-08-06Correctly NUL terminate the message buffer that is used with theclaudio1-4/+24
-starttls option. Without this openssl s_client -starttls crashed with malloc.conf -> J. OK deraadt@, hshoexer@
2007-08-05/*FALLTHRU*/ -> /* FALLTHROUGH */ray1-2/+2
2007-07-06Reference limits.h, not sys/param.h since we document using PATH_MAXmillert1-3/+3
OK otto@
2007-07-03from ginsbach@netbsd, -r1.18:jmc1-2/+7
Document that getopt_long(3) can and will accept unique abbreviated long option names. This feature has been present since getopt_long(3) was first released in NetBSD 1.5. This is also standard GNU getopt_long(3) behavior. ok millert
2007-06-29Document behavior when no conversion could be performed. Adaptedmillert2-5/+17
from FreeBSD. With help from jmc@.
2007-06-12``dot'' notationjmc1-19/+9
is more readable than `.' notation zap some silly .Tn whilst here;
2007-06-05_FD_LOCK/UNLOCK() is libpthread specific and not needed for librthread, sokurt1-21/+35
isolate its usage to libpthread only and replace with generic non-static mutex support in the one place it is needed: - remove _FD_LOCK/UNLOCK from lseek and ftruncate in libc and make the functions weak so that libpthread can override with its own new versions that do the locking. - remove _thread_fd_lock/unlock() weak functions from libc and adjust libpthread for the change. - add generic _thread_mutex_lock/unlock/destroy() weak functions in libc to support non-static mutexes in libc and add libpthread and librthread implementations for them. libc can utilize non-static mutexes via the new _MUTEX_LOCK/UNLOCK/DESTROY() macros. Actually these new macros can support both static and non-static mutexes but currently only using them for non-static. - make opendir/closedir/readdir/readdir_r/seekdir/telldir() thread-safe for both thread libraries by using a non-static mutex in the struct _dirdesc (typedef DIR), utilizing it in the *dir functions and remove remaining and incorrect _FD_LOCK/UNLOCK() use in libc. - add comments to both thread libraries to indicate libc depends on the current implementation of static mutex initialization. suggested by marc@ - major bump libc and libpthread due to function removal, structure change and weak symbol conversions. okay marc@, tedu@
2007-06-05remove ipx-related stuff. objections nobody. major bump by kurt in a fewhenning4-385/+3