forked from google/boringssl
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle errors from close in perlasm scripts.
If the xlate filter script fails, the outer script swallows the error, unless we check the return value of close. Change-Id: Ib506bb745a5d27b9d1df9329535bf81ad090f41f Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/35724 Reviewed-by: Adam Langley <agl@google.com>
- Loading branch information
Showing
53 changed files
with
53 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1161,4 +1161,4 @@ sub NEONROUND { | |
|
||
print $_,"\n"; | ||
} | ||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1134,4 +1134,4 @@ sub NEONROUND { | |
|
||
print $_,"\n"; | ||
} | ||
close STDOUT; # flush | ||
close STDOUT or die "error closing STDOUT"; # flush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2782,4 +2782,4 @@ sub AVX512_lane_ROUND { | |
print $_,"\n"; | ||
} | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2253,4 +2253,4 @@ sub aes256gcmsiv_kdf { | |
|
||
print $code; | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2485,4 +2485,4 @@ sub gen_chacha_round_avx2 { | |
___ | ||
} | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2997,4 +2997,4 @@ () | |
|
||
&asm_finish(); | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2906,4 +2906,4 @@ () | |
|
||
print $code; | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2551,4 +2551,4 @@ sub aesni_generate6 | |
|
||
&asm_finish(); | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5108,4 +5108,4 @@ sub movbe { | |
|
||
print $code; | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3802,4 +3802,4 @@ () | |
print $_,"\n"; | ||
} | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1018,4 +1018,4 @@ () | |
} | ||
} | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2431,4 +2431,4 @@ sub bitslice_key { | |
|
||
print $code; | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1359,4 +1359,4 @@ | |
|
||
print $code; | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -920,4 +920,4 @@ | |
|
||
&asm_finish(); | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1550,4 +1550,4 @@ | |
|
||
print $code; | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -759,4 +759,4 @@ | |
print $_,"\n"; | ||
} | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1507,4 +1507,4 @@ | |
|
||
print $code; | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
|
||
&asm_finish(); | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; | ||
|
||
sub bn_mul_add_words | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
|
||
&asm_finish(); | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; | ||
|
||
sub mul_add_c | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1940,4 +1940,4 @@ | |
___ | ||
}}} | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -628,4 +628,4 @@ | |
|
||
&asm_finish(); | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1578,4 +1578,4 @@ | |
} | ||
|
||
print $code; | ||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -400,4 +400,4 @@ sub SHIFT256 { | |
___ | ||
|
||
print $code; | ||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -380,4 +380,4 @@ sub round4_step | |
|
||
print $code; | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1143,4 +1143,4 @@ | |
|
||
print $code; | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -285,4 +285,4 @@ sub process_rows { | |
|
||
&asm_finish(); | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -410,4 +410,4 @@ sub process_rows { | |
} | ||
|
||
print $code; | ||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1803,4 +1803,4 @@ sub reduction_avx { | |
|
||
print $code; | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -667,4 +667,4 @@ | |
print $_,"\n"; | ||
} | ||
|
||
close STDOUT; # enforce flush | ||
close STDOUT or die "error closing STDOUT"; # enforce flush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -425,4 +425,4 @@ | |
} | ||
} | ||
|
||
close STDOUT; # enforce flush | ||
close STDOUT or die "error closing STDOUT"; # enforce flush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1483,4 +1483,4 @@ () | |
|
||
&asm_finish(); | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -740,4 +740,4 @@ () | |
print $_,$/; | ||
} | ||
|
||
close STDOUT; # enforce flush | ||
close STDOUT or die "error closing STDOUT"; # enforce flush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -353,4 +353,4 @@ sub BODY_20_39 { | |
print $_,"\n"; | ||
} | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2122,4 +2122,4 @@ sub sha1op38 { | |
|
||
print $_,"\n"; | ||
} | ||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1287,4 +1287,4 @@ () | |
|
||
&asm_finish(); | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -735,4 +735,4 @@ () | |
print $_,"\n"; | ||
} | ||
|
||
close STDOUT; # enforce flush | ||
close STDOUT or die "error closing STDOUT"; # enforce flush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -457,4 +457,4 @@ sub BODY_00_xx { | |
print $_,"\n"; | ||
} | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2083,4 +2083,4 @@ sub sha256op38 { | |
|
||
print $_,"\n"; | ||
} | ||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,4 +179,4 @@ | |
} | ||
|
||
print $code; | ||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,4 +206,4 @@ | |
} | ||
|
||
print $code; | ||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,4 +120,4 @@ | |
|
||
&asm_finish(); | ||
|
||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -556,4 +556,4 @@ sub store_caller_state { | |
} | ||
|
||
print $code; | ||
close STDOUT; | ||
close STDOUT or die "error closing STDOUT"; |