diff options
author | David Benjamin <davidben@google.com> | 2020-02-17 12:21:27 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-02-17 12:21:27 +1000 |
commit | 218e740f850f77c9f2720d56886eab166d1a6727 (patch) | |
tree | f1691e347bca452b568a9df238f15098d95ba88c /crypto | |
parent | 57225c99ef848f0d0d1a7ab586a61ef71740f1ff (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')