diff options
author | David Benjamin <davidben@google.com> | 2020-01-17 22:53:56 +0100 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2020-01-22 18:11:30 +0100 |
commit | 32be631ca1f2b73c92e4f7f5d23f1c3aee80ec69 (patch) | |
tree | 96311da5899ffe99a38af33e37d95f7426e80840 /crypto/alphacpuid.pl | |
parent | Russian Elbrus processors support (diff) | |
download | openssl-32be631ca1f2b73c92e4f7f5d23f1c3aee80ec69.tar.xz openssl-32be631ca1f2b73c92e4f7f5d23f1c3aee80ec69.zip |
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).
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10883)
Diffstat (limited to 'crypto/alphacpuid.pl')
-rw-r--r-- | crypto/alphacpuid.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/alphacpuid.pl b/crypto/alphacpuid.pl index 50a413438f..c64d50218a 100644 --- a/crypto/alphacpuid.pl +++ b/crypto/alphacpuid.pl @@ -253,4 +253,4 @@ OPENSSL_instrument_bus2: ___ } -close STDOUT; +close STDOUT or die "error closing STDOUT"; |