ASN1_STRING cleanup - realloc has handled NULL since I had a mullet
authorbeck <beck@openbsd.org>
Sun, 20 Apr 2014 23:30:12 +0000 (23:30 +0000)
committerbeck <beck@openbsd.org>
Sun, 20 Apr 2014 23:30:12 +0000 (23:30 +0000)
commit98d172d6d1244463ebc4f94534f6de14f3cac2f1
tree2089c3f77b63f2b3a76e475d625aabd82ad24f37
parenta2db36bbfc8e10827e63fad40c9f6e665a9f466c
ASN1_STRING cleanup - realloc has handled NULL since I had a mullet
and parachute pants - and since it's obvious there is no guarantee
the caller doesn't pass in the data area in the argument, use memmove
instead of memcpy so overlapping areas are handled correctly.
 Also, pointers can be usefully printed in hex with %p, in error messaeges
rather than the bizzaro stuff that was there using mystical buffer lengths
and abuse of strlcpy-converted-blindly-from-strcpy
lib/libcrypto/asn1/asn1_lib.c
lib/libssl/src/crypto/asn1/asn1_lib.c