Skip to content

Commit fa05834

Browse files
panvanodejs-github-bot
authored andcommitted
build: handle malformed OpenSSL macros
A missing OPENSSL_VERSION_NUMBER macro raises TypeError while the configure logic attempts to slice None. Treat that like the other version detection failures so configure warns and records version 0. Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #64982 Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Aviv Keller <me@aviv.sh>
1 parent 6b8a454 commit fa05834

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎configure.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ def get_openssl_version(o):
15231523

15241524
return version_number
15251525

1526-
except (OSError, ValueError, subprocess.SubprocessError) as e:
1526+
except (OSError, TypeError, ValueError, subprocess.SubprocessError) as e:
15271527
warn(f'Failed to determine OpenSSL version from header: {e}')
15281528
return 0
15291529

0 commit comments

Comments
 (0)