Skip to content

Commit

Permalink
util/mkrc.pl: Make sure FILEVERSION and PRODUCTVERSION have four numbers
Browse files Browse the repository at this point in the history
Partially fixes openssl#13414

Reviewed-by: Matt Caswell <[email protected]>
(Merged from openssl#13415)
  • Loading branch information
levitte committed Nov 17, 2020
1 parent ef2a44e commit c7d32b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions util/mkrc.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
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";
Expand Down

0 comments on commit c7d32b6

Please sign in to comment.