[openssl] master update

Richard Levitte levitte at openssl.org
Tue Nov 17 12:18:54 UTC 2020


The branch master has been updated
       via  c7d32b6ba520461103015022d8b4095573ca9691 (commit)
      from  ef2a44eb31c88b47bca914295b229a9bd1658145 (commit)


- Log -----------------------------------------------------------------
commit c7d32b6ba520461103015022d8b4095573ca9691
Author: Richard Levitte <levitte at openssl.org>
Date:   Sun Nov 15 09:57:00 2020 +0100

    util/mkrc.pl: Make sure FILEVERSION and PRODUCTVERSION have four numbers
    
    Partially fixes #13414
    
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/13415)

-----------------------------------------------------------------------

Summary of changes:
 util/mkrc.pl | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/util/mkrc.pl b/util/mkrc.pl
index d3617663eb..6ec1f37470 100755
--- a/util/mkrc.pl
+++ b/util/mkrc.pl
@@ -14,8 +14,10 @@ use configdata;
 my $cversion = "$config{version}";
 my $version = "$config{full_version}";
 
-# RC syntax for versions uses commas as separators, rather than period
-$cversion =~ s|\.|,|g;
+# RC syntax for versions uses commas as separators, rather than period,
+# and it must have exactly 4 numbers (16-bit integers).
+my @vernums = ( split(/\./, $cversion), 0, 0, 0, 0 );
+$cversion = join(',', @vernums[0..3]);
 
 my $filename = $ARGV[0];
 my $description = "OpenSSL library";


More information about the openssl-commits mailing list