[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Richard Levitte
levitte at openssl.org
Thu Aug 31 17:21:37 UTC 2017
The branch OpenSSL_1_1_0-stable has been updated
via 0d13ed3a17e9a98678a1695921bb479294b4b210 (commit)
from 03b4e1c3496ae009a0e1df1a39c48b051dcca3db (commit)
- Log -----------------------------------------------------------------
commit 0d13ed3a17e9a98678a1695921bb479294b4b210
Author: Richard Levitte <levitte at openssl.org>
Date: Thu Aug 31 11:35:25 2017 +0200
util/mkdef.pl: handle line terminators correctly
When parsing the header files, mkdef.pl didn't clear the line
terminator properly. In most cases, this didn't matter, but there
were moments when this caused parsing errors (such as CRLFs in certain
cases).
Fixes #4267
Reviewed-by: Andy Polyakov <appro at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4304)
(cherry picked from commit e66b62b86e7725bdace0f24a76baa61db9c763f8)
-----------------------------------------------------------------------
Summary of changes:
util/mkdef.pl | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/util/mkdef.pl b/util/mkdef.pl
index b057115..5fb2f85 100755
--- a/util/mkdef.pl
+++ b/util/mkdef.pl
@@ -458,10 +458,10 @@ sub do_defs
print STDERR "DEBUG: parsing ----------\n" if $debug;
while(<IN>) {
+ s|\R$||; # Better chomp
if($parens > 0) {
#Inside a DEPRECATEDIN
$stored_multiline .= $_;
- $stored_multiline =~ s|\R$||; # Better chomp
print STDERR "DEBUG: Continuing multiline DEPRECATEDIN: $stored_multiline\n" if $debug;
$parens = count_parens($stored_multiline);
if ($parens == 0) {
@@ -875,7 +875,6 @@ sub do_defs
\@current_algorithms);
} else {
$stored_multiline = $_;
- $stored_multiline =~ s|\R$||;
print STDERR "DEBUG: Found multiline DEPRECATEDIN starting with: $stored_multiline\n" if $debug;
next;
}
More information about the openssl-commits
mailing list