summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@google.com>2020-02-17 12:21:27 +1000
committerPauli <paul.dale@oracle.com>2020-02-17 12:21:27 +1000
commit218e740f850f77c9f2720d56886eab166d1a6727 (patch)
treef1691e347bca452b568a9df238f15098d95ba88c /crypto
parent57225c99ef848f0d0d1a7ab586a61ef71740f1ff (diff)
Do not silently truncate files on perlasm errors
If one of the perlasm xlate drivers crashes, OpenSSL's build will currently swallow the error and silently truncate the output to however far the driver got. This will hopefully fail to build, but better to check such things. Handle this by checking for errors when closing STDOUT (which is a pipe to the xlate driver). This is the OpenSSL 1.1.1 version of https://github.com/openssl/openssl/pull/10883 and https://github.com/openssl/openssl/pull/10930. Reviewed-by: Mark J. Cox <mark@awe.com> Reviewed-by: Paul Dale David Benjamin <davidben@google.com> (Merged from https://github.com/openssl/openssl/pull/10931)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/aes/asm/aes-armv4.pl2
-rw-r--r--crypto/aes/asm/aes-c64xplus.pl2
-rw-r--r--crypto/aes/asm/aes-mips.pl2
-rw-r--r--crypto/aes/asm/aes-parisc.pl2
-rw-r--r--crypto/aes/asm/aes-ppc.pl2
-rw-r--r--crypto/aes/asm/aes-s390x.pl2
-rwxr-xr-xcrypto/aes/asm/aes-sparcv9.pl2
-rw-r--r--crypto/aes/asm/aesfx-sparcv9.pl2
-rw-r--r--crypto/aes/asm/aesni-mb-x86_64.pl2
-rw-r--r--crypto/aes/asm/aesni-sha1-x86_64.pl2
-rw-r--r--crypto/aes/asm/aesni-sha256-x86_64.pl2
-rw-r--r--crypto/aes/asm/aesni-x86.pl2
-rw-r--r--crypto/aes/asm/aesni-x86_64.pl2
-rwxr-xr-xcrypto/aes/asm/aesp8-ppc.pl2
-rw-r--r--crypto/aes/asm/aest4-sparcv9.pl2
-rwxr-xr-xcrypto/aes/asm/aesv8-armx.pl2
-rw-r--r--crypto/aes/asm/bsaes-armv7.pl2
-rwxr-xr-xcrypto/aes/asm/vpaes-armv8.pl2
-rw-r--r--crypto/aes/asm/vpaes-ppc.pl2
-rw-r--r--crypto/aes/asm/vpaes-x86.pl2
-rw-r--r--crypto/aes/asm/vpaes-x86_64.pl2
-rw-r--r--crypto/alphacpuid.pl2
-rwxr-xr-xcrypto/arm64cpuid.pl2
-rw-r--r--crypto/armv4cpuid.pl2
-rw-r--r--crypto/bf/asm/bf-586.pl2
-rw-r--r--crypto/bn/asm/alpha-mont.pl2
-rw-r--r--crypto/bn/asm/armv4-gf2m.pl2
-rw-r--r--crypto/bn/asm/armv4-mont.pl2
-rwxr-xr-xcrypto/bn/asm/armv8-mont.pl2
-rw-r--r--crypto/bn/asm/bn-586.pl2
-rw-r--r--crypto/bn/asm/c64xplus-gf2m.pl2
-rw-r--r--crypto/bn/asm/co-586.pl2
-rw-r--r--crypto/bn/asm/ia64-mont.pl2
-rw-r--r--crypto/bn/asm/mips-mont.pl2
-rw-r--r--crypto/bn/asm/mips.pl2
-rw-r--r--crypto/bn/asm/parisc-mont.pl2
-rw-r--r--crypto/bn/asm/ppc-mont.pl2
-rw-r--r--crypto/bn/asm/ppc.pl2
-rw-r--r--crypto/bn/asm/ppc64-mont.pl2
-rwxr-xr-xcrypto/bn/asm/rsaz-avx2.pl2
-rwxr-xr-xcrypto/bn/asm/rsaz-x86_64.pl2
-rw-r--r--crypto/bn/asm/s390x-gf2m.pl2
-rw-r--r--crypto/bn/asm/s390x-mont.pl2
-rwxr-xr-xcrypto/bn/asm/sparct4-mont.pl2
-rw-r--r--crypto/bn/asm/sparcv9-gf2m.pl2
-rw-r--r--crypto/bn/asm/sparcv9-mont.pl2
-rwxr-xr-xcrypto/bn/asm/sparcv9a-mont.pl2
-rw-r--r--crypto/bn/asm/via-mont.pl2
-rw-r--r--crypto/bn/asm/vis3-mont.pl2
-rw-r--r--crypto/bn/asm/x86-gf2m.pl2
-rwxr-xr-xcrypto/bn/asm/x86-mont.pl2
-rw-r--r--crypto/bn/asm/x86_64-gf2m.pl2
-rwxr-xr-xcrypto/bn/asm/x86_64-mont.pl2
-rwxr-xr-xcrypto/bn/asm/x86_64-mont5.pl2
-rw-r--r--crypto/c64xpluscpuid.pl2
-rw-r--r--crypto/camellia/asm/cmll-x86.pl2
-rw-r--r--crypto/camellia/asm/cmll-x86_64.pl2
-rw-r--r--crypto/camellia/asm/cmllt4-sparcv9.pl2
-rw-r--r--crypto/cast/asm/cast-586.pl2
-rwxr-xr-xcrypto/chacha/asm/chacha-armv4.pl2
-rwxr-xr-xcrypto/chacha/asm/chacha-armv8.pl2
-rwxr-xr-xcrypto/chacha/asm/chacha-c64xplus.pl2
-rwxr-xr-xcrypto/chacha/asm/chacha-ppc.pl2
-rwxr-xr-xcrypto/chacha/asm/chacha-s390x.pl2
-rwxr-xr-xcrypto/chacha/asm/chacha-x86.pl2
-rwxr-xr-xcrypto/chacha/asm/chacha-x86_64.pl2
-rw-r--r--crypto/des/asm/crypt586.pl2
-rw-r--r--crypto/des/asm/des-586.pl2
-rw-r--r--crypto/des/asm/dest4-sparcv9.pl2
-rwxr-xr-xcrypto/ec/asm/ecp_nistz256-armv4.pl2
-rw-r--r--crypto/ec/asm/ecp_nistz256-armv8.pl2
-rwxr-xr-xcrypto/ec/asm/ecp_nistz256-avx2.pl2
-rwxr-xr-xcrypto/ec/asm/ecp_nistz256-ppc64.pl2
-rwxr-xr-xcrypto/ec/asm/ecp_nistz256-sparcv9.pl2
-rwxr-xr-xcrypto/ec/asm/ecp_nistz256-x86.pl2
-rwxr-xr-xcrypto/ec/asm/ecp_nistz256-x86_64.pl2
-rwxr-xr-xcrypto/ec/asm/x25519-ppc64.pl2
-rwxr-xr-xcrypto/ec/asm/x25519-x86_64.pl2
-rw-r--r--crypto/md5/asm/md5-586.pl2
-rw-r--r--crypto/md5/asm/md5-sparcv9.pl2
-rwxr-xr-xcrypto/md5/asm/md5-x86_64.pl2
-rw-r--r--crypto/modes/asm/aesni-gcm-x86_64.pl2
-rw-r--r--crypto/modes/asm/ghash-alpha.pl2
-rw-r--r--crypto/modes/asm/ghash-armv4.pl2
-rw-r--r--crypto/modes/asm/ghash-c64xplus.pl2
-rwxr-xr-xcrypto/modes/asm/ghash-ia64.pl2
-rw-r--r--crypto/modes/asm/ghash-parisc.pl2
-rw-r--r--crypto/modes/asm/ghash-s390x.pl2
-rw-r--r--crypto/modes/asm/ghash-sparcv9.pl2
-rw-r--r--crypto/modes/asm/ghash-x86.pl2
-rw-r--r--crypto/modes/asm/ghash-x86_64.pl2
-rwxr-xr-xcrypto/modes/asm/ghashp8-ppc.pl2
-rw-r--r--crypto/modes/asm/ghashv8-armx.pl2
-rw-r--r--crypto/pariscid.pl2
-rwxr-xr-xcrypto/perlasm/arm-xlate.pl2
-rwxr-xr-xcrypto/perlasm/ppc-xlate.pl2
-rwxr-xr-xcrypto/perlasm/x86_64-xlate.pl2
-rwxr-xr-xcrypto/poly1305/asm/poly1305-armv4.pl2
-rwxr-xr-xcrypto/poly1305/asm/poly1305-armv8.pl2
-rwxr-xr-xcrypto/poly1305/asm/poly1305-mips.pl2
-rwxr-xr-xcrypto/poly1305/asm/poly1305-ppc.pl2
-rwxr-xr-xcrypto/poly1305/asm/poly1305-ppcfp.pl2
-rwxr-xr-xcrypto/poly1305/asm/poly1305-s390x.pl2
-rwxr-xr-xcrypto/poly1305/asm/poly1305-sparcv9.pl2
-rwxr-xr-xcrypto/poly1305/asm/poly1305-x86.pl2
-rwxr-xr-xcrypto/poly1305/asm/poly1305-x86_64.pl2
-rwxr-xr-xcrypto/ppccpuid.pl2
-rw-r--r--crypto/rc4/asm/rc4-586.pl2
-rw-r--r--crypto/rc4/asm/rc4-c64xplus.pl2
-rw-r--r--crypto/rc4/asm/rc4-md5-x86_64.pl2
-rw-r--r--crypto/rc4/asm/rc4-parisc.pl2
-rw-r--r--crypto/rc4/asm/rc4-s390x.pl2
-rwxr-xr-xcrypto/rc4/asm/rc4-x86_64.pl2
-rw-r--r--crypto/rc5/asm/rc5-586.pl2
-rw-r--r--crypto/ripemd/asm/rmd-586.pl2
-rwxr-xr-xcrypto/s390xcpuid.pl2
-rwxr-xr-xcrypto/sha/asm/keccak1600-armv4.pl2
-rwxr-xr-xcrypto/sha/asm/keccak1600-armv8.pl2
-rwxr-xr-xcrypto/sha/asm/keccak1600-avx2.pl2
-rwxr-xr-xcrypto/sha/asm/keccak1600-avx512.pl2
-rwxr-xr-xcrypto/sha/asm/keccak1600-avx512vl.pl2
-rwxr-xr-xcrypto/sha/asm/keccak1600-c64x.pl2
-rwxr-xr-xcrypto/sha/asm/keccak1600-mmx.pl2
-rwxr-xr-xcrypto/sha/asm/keccak1600-ppc64.pl2
-rwxr-xr-xcrypto/sha/asm/keccak1600-s390x.pl2
-rwxr-xr-xcrypto/sha/asm/keccak1600-x86_64.pl2
-rwxr-xr-xcrypto/sha/asm/keccak1600p8-ppc.pl2
-rw-r--r--crypto/sha/asm/sha1-586.pl2
-rw-r--r--crypto/sha/asm/sha1-alpha.pl2
-rw-r--r--crypto/sha/asm/sha1-armv4-large.pl2
-rw-r--r--crypto/sha/asm/sha1-armv8.pl2
-rw-r--r--crypto/sha/asm/sha1-c64xplus.pl2
-rw-r--r--crypto/sha/asm/sha1-mb-x86_64.pl2
-rw-r--r--crypto/sha/asm/sha1-mips.pl2
-rw-r--r--crypto/sha/asm/sha1-parisc.pl2
-rwxr-xr-xcrypto/sha/asm/sha1-ppc.pl2
-rw-r--r--crypto/sha/asm/sha1-s390x.pl2
-rw-r--r--crypto/sha/asm/sha1-sparcv9.pl2