summaryrefslogtreecommitdiff
path: root/random/unix
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaces in *.c.Ivan Zhakov2022-11-202-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
* Remove trailing whitespaces.Ivan Zhakov2022-11-191-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905407 13f79535-47bb-0310-9956-ffa450edef68
* Fix various harmless cases of undefined behaviour, and add a TravisJoe Orton2022-02-141-1/+1
| | | | | | | | | | | | | | | | | | | job testing under UBSan. * poll/unix/poll.c (apr_poll): For the on-stack array allocation use num+1 since allocating a 0-length array is undefined behaviour. * tables/apr_skiplist.c (get_b_rand): Use unsigned integers to avoid signed integer overflow in the left shift. (skiplist_qpush): Avoid calling memcpy(,NULL,0). * random/unix/apr_random.c (apr_random_add_entropy): Avoid calling memcpy(,NULL,0). * test/teststr.c (overflow_strfsize): Avoid signed integer overflow. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1898076 13f79535-47bb-0310-9956-ffa450edef68
* * random/unix/sha2.c (apr__SHA256_Final, apr__SHA256_End): Fix parameterJoe Orton2021-05-071-2/+2
| | | | | | | | buffer lengths to match declaration, avoiding GCC 11 warning. (no functional change) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1889604 13f79535-47bb-0310-9956-ffa450edef68
* Removed tabs; fixed braces indent; added ASF header.Guenter Knauf2013-05-231-9/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1485604 13f79535-47bb-0310-9956-ffa450edef68
* * random/unix/sha2.c (apr__SHA256_Final): Avoid C pointer aliasingJoe Orton2012-12-111-1/+8
| | | | | | | | | violation. Submitted by: Jan Kaluza <jkaluza redhat.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1420109 13f79535-47bb-0310-9956-ffa450edef68
* * random/unix/: Remove unused SHA-384/SHA-512 implementations.Joe Orton2012-12-112-508/+2
| | | | | | | Submitted by: Jan Kaluza <jkaluza redhat.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1420106 13f79535-47bb-0310-9956-ffa450edef68
* Clean up references to rng struct when pool is destroyedStefan Fritsch2011-11-071-0/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1198921 13f79535-47bb-0310-9956-ffa450edef68
* Clarify what happens to the proc structure used by apr_fork(). Sander Temme2011-11-071-0/+5
| | | | | | | | | Set the proc->pid field to the pid of the newly created child. Note that a mere pid value provides little entropy to mix into the child random pool. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1198860 13f79535-47bb-0310-9956-ffa450edef68
* Fix issue found by PVS-Studio static analyzer:Stefan Fritsch2011-09-191-6/+6
| | | | | | | | | | Correctly clear whole sha256 state PR: 51542 Submitted by: Andrey Karpov <karpov viva64 com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1172825 13f79535-47bb-0310-9956-ffa450edef68
* Document and add extern "C" linkage declaration to the apr_random.h header.Davi Arnaut2007-07-211-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@558224 13f79535-47bb-0310-9956-ffa450edef68
* * random/unix/sha2.c: Fix array declarations for C89, whichJoe Orton2007-02-161-5/+5
| | | | | | | requires static before const. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@508506 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.Joe Orton2006-08-033-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-033-18/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* These working sizes are never negative, always mem mapping sized.William A. Rowe Jr2006-01-131-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@368550 13f79535-47bb-0310-9956-ffa450edef68
* * random/unix/sha2.h, random/unix/sha2.c: Fix more global symbols.Joe Orton2005-12-092-19/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@355464 13f79535-47bb-0310-9956-ffa450edef68
* Prefix non-static symbols with 'apr__' to avoid namespace conflicts.Brian Fitzpatrick2005-12-073-45/+45
| | | | | | | | | | | | | | * random/unix/sha2.h, random/unix/sha2_glue.c, random/unix/sha2.c: Rename SHA256_Init, SHA256_Update, SHA256_Final, SHA256_Transform, SHA384_Init, SHA512_Init, SHA512_Final, SHA384_Final, SHA512_Update, SHA384_Update, and SHA512_Transform, , to apr__SHA256_Init, apr__SHA256_Update, apr__SHA256_Final, apr__SHA256_Transform, apr__SHA384_Init, apr__SHA512_Init, apr__SHA512_Final, apr__SHA384_Final, apr__SHA512_Update, apr__SHA384_Update, and apr__SHA512_Transform. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@354824 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-043-3/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* Clean up 4 extranious emits. Because of the modulo operator, theseWilliam A. Rowe Jr2005-01-051-4/+8
| | | | | | | becomes safe casts to unsigned. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@124243 13f79535-47bb-0310-9956-ffa450edef68
* Remove .cvsignore files.Joe Orton2004-11-181-4/+0
| | | | | | | Tipped-of-by: Uwe Zeisberger git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@76269 13f79535-47bb-0310-9956-ffa450edef68
* * random/unix/apr_random.c (apr_random_init): Zero-initialize H andJoe Orton2004-10-061-2/+2
| | | | | | | | | H_waiting fields to fix spurious test failures. Submitted by: Mladen Turk git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65361 13f79535-47bb-0310-9956-ffa450edef68
* Relicense.Joe Orton2004-02-283-147/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64930 13f79535-47bb-0310-9956-ffa450edef68
* First whack at switching to a single top-level make. This adds a dependencyGreg Stein2004-02-051-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | upon Python at packaging time, but not at end-user config/build time. As far as I can tell, the build continues to function properly. (out-of-dir config/make not tested, and apr-iconv prolly needs some work) The buildconf scripts now generate a build-outputs.mk file which is included by the root's Makefile (via the build/gen-build.py script). bulid-outputs.mk specifies all of the various files present in the distribution. The top-level Makefiles were simplified to use an $(OBJECTS) symbol rather than 'find'ing them. Similarly, a $(HEADERS) symbol is used for the exports. The corresponding delete-* targets were eliminated since we have a precise set of inputs. The subdirs' Makefiles were removed since they are no longer called/used. The apr-util/uri Makefile was responsible for compiling a C program to generate the uri_delims.h file. That process was replaced by a Python script to generate the header (called by buildconf). The .c and .dsp were left for the Windows build to continue, but that should be revamped. build/apr_rules.mk was revamped somewhat to avoid recursion, but a lot of cleanup is still needed. Much of the recursive/local/x- logic is no longer needed and can be elimianated. rules.mk was created for inclusion by N makefiles, but that isn't really true any more, so it could probably be tossed (caveat: test/Makefile). Saved for a phase 2. Some additional work was added to properly clean up files in */build/, rather than relying on a makefile in there. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64891 13f79535-47bb-0310-9956-ffa450edef68
* Correct signedness of abs values.William A. Rowe Jr2003-11-171-6/+6
| | | | | | | Reviewed by Will Rowe, Ben Laurie git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64754 13f79535-47bb-0310-9956-ffa450edef68
* With the exception of some intersting(1) output from testall random2,William A. Rowe Jr2003-11-163-75/+81
| | | | | | | | | | Win32 APR1.0 now builds with apr_random. Required us to compliment APR_INT64_C with a corresponding APR_UINT64_C, and finish up Brad's efforts to APR_DECLARE() the various entry points. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64751 13f79535-47bb-0310-9956-ffa450edef68
* fix an odd portability issue:Jeff Trawick2003-11-061-2/+2
| | | | | | | Bit-field foo must be of type signed int, unsigned int or int. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64737 13f79535-47bb-0310-9956-ffa450edef68
* Get rid of tabs.Ben Laurie2003-11-063-798/+798
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64733 13f79535-47bb-0310-9956-ffa450edef68
* Ignore generated source.Joe Orton2003-11-051-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64732 13f79535-47bb-0310-9956-ffa450edef68
* * apr_random.c: Fix comment.Joe Orton2003-11-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64731 13f79535-47bb-0310-9956-ffa450edef68
* Endianness and APR types for random.Ben Laurie2003-11-052-208/+52
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64728 13f79535-47bb-0310-9956-ffa450edef68
* SHA-2 code has been licensed to the ASF.Ben Laurie2003-11-052-46/+98
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64726 13f79535-47bb-0310-9956-ffa450edef68
* Code style.Ben Laurie2003-11-051-117/+112
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64725 13f79535-47bb-0310-9956-ffa450edef68
* Make sure randomness is different after a fork.Ben Laurie2003-11-031-2/+45
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64716 13f79535-47bb-0310-9956-ffa450edef68
* Start of new PRNG.Ben Laurie2003-11-035-0/+1607
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64712 13f79535-47bb-0310-9956-ffa450edef68