Skip to content

Commit c7d32b6

Browse files
committed
util/mkrc.pl: Make sure FILEVERSION and PRODUCTVERSION have four numbers
Partially fixes openssl#13414 Reviewed-by: Matt Caswell <[email protected]> (Merged from openssl#13415)
1 parent ef2a44e commit c7d32b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

util/mkrc.pl

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
my $cversion = "$config{version}";
1515
my $version = "$config{full_version}";
1616

17-
# RC syntax for versions uses commas as separators, rather than period
18-
$cversion =~ s|\.|,|g;
17+
# RC syntax for versions uses commas as separators, rather than period,
18+
# and it must have exactly 4 numbers (16-bit integers).
19+
my @vernums = ( split(/\./, $cversion), 0, 0, 0, 0 );
20+
$cversion = join(',', @vernums[0..3]);
1921

2022
my $filename = $ARGV[0];
2123
my $description = "OpenSSL library";

0 commit comments

Comments
 (0)