Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Check the result of sk_*_push() operations for failure. | miod | 2014-10-28 | 2 | -11/+26 |
| | | | | ok doug@ jsing@ | ||||
* | The fixes to X509_PURPOSE_add() in r1.18 actually could cause a global | miod | 2014-10-05 | 1 | -27/+29 |
| | | | | | | | | | | | | | X509_PURPOSE object (obtained with X509_PURPOSE_get0() instead of being allocated in the function) to be freed if modifying that object would fail due to a low memory condition, while this object would still be referenced elsewhere. Fix this by only cleaning the object if we did not allocate it here. While there, fail early if either `name' or `sname' are NULL, rather than allocating an object and realizing we have nothing to strdup() into it. ok guenther@ | ||||
* | Be sure to check the stack push operation for success in v2i_POLICY_MAPPINGS(); | miod | 2014-10-05 | 1 | -17/+19 |
| | | | | | | if it fails, free the object we were about to push. Factor error handling to avoid having four copies of about the same code. ok guenther@ | ||||
* | In v2i_AUTHORITY_INFO_ACCESS(), separate object allocation from object push | miod | 2014-10-05 | 1 | -3/+8 |
| | | | | | | on a stack; if the latter fails, we need to free the object before returning failure. ok guenther@ | ||||
* | Memory leak upon error in set_dist_point_name(). | miod | 2014-10-05 | 1 | -1/+2 |
| | | | | ok guenther@ | ||||
* | Be sure to check object allocation for success before using them. | miod | 2014-10-05 | 1 | -5/+10 |
| | | | | Tweaks and ok guenther@ | ||||
* | Missing deallocation upon error. | miod | 2014-10-05 | 1 | -2/+3 |
| | | | | ok deraadt@ guenther@ | ||||
* | Fix memory leak in the error path of v2i_AUTHORITY_KEYID(). | miod | 2014-10-05 | 1 | -3/+6 |
| | | | | ok deraadt@ guenther@ | ||||
* | level_add_node(): if a memory allocation failure causes us to attempt to clean | miod | 2014-07-23 | 1 | -4/+7 |
| | | | | | | | up and return failure, be sure the cleanup work does NOT free objects which are still being referenced by other objects. ok guenther@ | ||||
* | The bell tolls for BUF_strdup - Start the migration to using | beck | 2014-07-13 | 5 | -17/+20 |
| | | | | | | intrinsics. This is the easy ones, a few left to check one at a time. ok miod@ deraadt@ | ||||
* | Only import cryptlib.h in the four source files that actually need it. | jsing | 2014-07-11 | 33 | -79/+73 |
| | | | | | | | | Remove the openssl public includes from cryptlib.h and add a small number of includes into the source files that actually need them. While here, also sort/group/tidy the includes. ok beck@ miod@ | ||||
* | Explicitly include <openssl/opensslconf.h> in every file that references | jsing | 2014-07-10 | 7 | -7/+24 |
| | | | | | | | | | an OPENSSL_NO_* define. This avoids relying on something else pulling it in for us, plus it fixes several cases where the #ifndef OPENSSL_NO_XYZ is never going to do anything, since OPENSSL_NO_XYZ will never defined, due to the fact that opensslconf.h has not been included. This also includes some miscellaneous sorting/tidying of headers. | ||||
* | Upon realloc() failure, free() the original pointer and remove the stupid | miod | 2014-07-10 | 1 | -3/+3 |
| | | | | | comments implying you don't have to. ok tedu@ | ||||
* | Stop including standard headers via cryptlib.h - pull in the headers that | jsing | 2014-07-10 | 17 | -27/+54 |
| | | | | | | are needed in the source files that actually require them. ok beck@ miod@ | ||||
* | {malloc,reallocarray} + memset(,0,) -> calloc | miod | 2014-07-09 | 1 | -4/+2 |
| | | | | ok tedu@ | ||||
* | Fix 9 memory leaks. | logan | 2014-06-28 | 1 | -1/+10 |
| | | | | | | | | (Thanks to Brent Cook) With help from tedu@ OK from tedu@ | ||||
* | tags as requested by miod and tedu | deraadt | 2014-06-12 | 39 | -37/+39 |
| | |||||
* | c-file-style hints, begone; ok beck | deraadt | 2014-06-11 | 2 | -2/+2 |
| | |||||
* | Remove various test stubs. The good ones have been moved by jsing | deraadt | 2014-06-07 | 3 | -323/+0 |
| | | | | | | and others to the regress framework. These remaining ones just muddle us up when re-reading code repeatedly. ok jsing | ||||
* | There is no need for is{upper,lower}() tests before to{lower,uppper}(), | deraadt | 2014-06-01 | 1 | -4/+2 |
| | | | | | since all other characters are mapped through transparently. ok jsing | ||||
* | EBCDIC support died a while ago, except in a comment. | deraadt | 2014-06-01 | 1 | -2/+0 |
| | |||||
* | more: no need for null check before free | deraadt | 2014-05-30 | 2 | -14/+7 |
| | | | | ok tedu guenther | ||||
* | ok, next pass after review: when possible, put the reallocarray arguments | deraadt | 2014-05-29 | 1 | -1/+1 |
| | | | | in the "size_t nmemb, size_t size" | ||||
* | convert 53 malloc(a*b) to reallocarray(NULL, a, b). that is 53 | deraadt | 2014-05-29 | 1 | -1/+1 |
| | | | | | | | | | potential integer overflows easily changed into an allocation return of NULL, with errno nicely set if need be. checks for an allocations returning NULL are commonplace, or if the object is dereferenced (quite normal) will result in a nice fault which can be detected & repaired properly. ok tedu | ||||
* | Everything sane has stdio, and FILE *. we don't need ifdefs for this. | beck | 2014-05-29 | 1 | -2/+0 |
| | | | | ok to firebomb from tedu@ | ||||
* | KNF. | jsing | 2014-05-26 | 3 | -360/+479 |
| | |||||
* | KNF. | jsing | 2014-05-26 | 7 | -538/+656 |
| | |||||
* | if (x) free(x) -> free(x); semantic patch generated with coccinelle, carefully | miod | 2014-05-22 | 2 | -5/+3 |
| | | | | eyeballed before applying. Contributed by Cyril Roelandt on tech@ | ||||
* | Put explicit (void) in function declarations and shuffle keywords in some | miod | 2014-04-27 | 1 | -1/+1 |
| | | | | | declaration to pass -Wextra, should we want to add it to CFLAGS. No binary change. | ||||
* | Fix leak last commit introduced. Spotted by Sebastian Kapfer. | beck | 2014-04-27 | 1 | -0/+1 |
| | |||||
* | Replace all use of ERR_add_error_data with ERR_asprintf_error_data. | beck | 2014-04-26 | 5 | -16/+15 |
| | | | | | | | | This avoids a lot of ugly gymnastics to do snprintfs before sending the bag of strings to ERR, and eliminates at least one place in dso_dlfctn.c where it was being called with the incorrect number of arguments and using random things off the stack as addresses of strings. ok krw@, jsing@ | ||||
* | KNF. | jsing | 2014-04-21 | 2 | -239/+249 |
| | |||||
* | KNF. | jsing | 2014-04-21 | 7 | -343/+409 |
| | |||||
* | KNF. | jsing | 2014-04-21 | 4 | -102/+119 |
| | |||||
* | no need for malloc casts | deraadt | 2014-04-21 | 2 | -2/+2 |
| | |||||
* | KNF. | jsing | 2014-04-21 | 5 | -659/+722 |
| | |||||
* | KNF. | jsing | 2014-04-21 | 5 | -1971/+2092 |
| | |||||
* | KNF. | jsing | 2014-04-21 | 8 | -548/+456 |
| | |||||
* | Restore beck's (void)snprintf(): they were reviewed. | guenther | 2014-04-20 | 1 | -2/+2 |
| | |||||
* | We'll interpret a (void) cast on snprintf() to mean it's been verified that | guenther | 2014-04-19 | 1 | -2/+2 |
| | | | | | | truncation is either desirable, not an issue, or is detected and handled later ok deraadt@ | ||||
* | use intrinsic strlcpy and strlcat everywhere so we only have one set of | beck | 2014-04-19 | 1 | -3/+3 |
| | | | | | | funcitons to check for incorrect use. keep BUF_strlcpy and BUF_strlcat for API comptibility only. ok tedu@ | ||||
* | Change library to use intrinsic memory allocation functions instead of | beck | 2014-04-17 | 18 | -73/+73 |
| | | | | | | | | OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free | ||||
* | OpenSSL PR#3309: when looking for an extension, set the last found position | sthen | 2014-04-17 | 1 | -3/+3 |
| | | | | | | to -1 to properly search all extensions. ok tedu@ From http://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=300b9f0b70 | ||||
* | Clean up dangerous strncpy use. This included a use where the resulting | beck | 2014-04-16 | 2 | -6/+7 |
| | | | | | | | string was potentially not nul terminated and a place where malloc return was unchecked. while we're at it remove dummytest.c ok miod@ | ||||
* | we don't use these files for building | tedu | 2014-04-15 | 1 | -85/+0 |
| | |||||
* | Send the rotIBM stream cipher (ebcdic) to Valhalla to party for eternity | beck | 2014-04-15 | 3 | -51/+0 |
| | | | | | with the bearded ones... some API's that nobody should be using will dissapear with this commit. | ||||
* | Part 1 of eliminating BIO_snprintf(). This fixes mechanical conversions | beck | 2014-04-15 | 1 | -2/+2 |
| | | | | | where the return value is ignored changing to (void) snprintf. ok deraadt@ | ||||
* | remove auto-generated dependencies from the old unused build system, so | deraadt | 2014-04-14 | 1 | -506/+0 |
| | | | | | that it is easier to find code pieces. They are getting in the way. ok miod | ||||
* | Merge conflicts; remove MacOS, Netware, OS/2, VMS and Windows build machinery. | miod | 2014-04-13 | 1 | -2/+2 |
| | |||||
* | resolve conflicts | djm | 2012-10-13 | 2 | -9/+57 |
| |