Commit f92d54b
committed
openssl: Fix missing error propagation for BIO_printf() calls
Since these go through a file, this can fail.
For some of these, the error is already checked but not propagated to
userland, causing a "true" return value but an incomplete file.
For others, the error is not checked and can also lead to an incomplete
file.
Solve this by always propagating failure, especially as the other write
calls are already checked for failure.
Closes GH-21360.1 parent 9ec303e commit f92d54b
2 files changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5900 | 5900 | | |
5901 | 5901 | | |
5902 | 5902 | | |
| 5903 | + | |
5903 | 5904 | | |
5904 | 5905 | | |
5905 | 5906 | | |
5906 | 5907 | | |
5907 | 5908 | | |
5908 | | - | |
| 5909 | + | |
5909 | 5910 | | |
5910 | | - | |
| 5911 | + | |
5911 | 5912 | | |
5912 | 5913 | | |
| 5914 | + | |
| 5915 | + | |
| 5916 | + | |
| 5917 | + | |
5913 | 5918 | | |
5914 | 5919 | | |
5915 | 5920 | | |
| |||
6128 | 6133 | | |
6129 | 6134 | | |
6130 | 6135 | | |
| 6136 | + | |
6131 | 6137 | | |
6132 | 6138 | | |
6133 | 6139 | | |
| |||
6518 | 6524 | | |
6519 | 6525 | | |
6520 | 6526 | | |
| 6527 | + | |
6521 | 6528 | | |
6522 | 6529 | | |
6523 | 6530 | | |
6524 | 6531 | | |
6525 | 6532 | | |
6526 | | - | |
| 6533 | + | |
6527 | 6534 | | |
6528 | | - | |
| 6535 | + | |
6529 | 6536 | | |
6530 | 6537 | | |
| 6538 | + | |
| 6539 | + | |
| 6540 | + | |
| 6541 | + | |
6531 | 6542 | | |
6532 | 6543 | | |
6533 | 6544 | | |
| |||
6807 | 6818 | | |
6808 | 6819 | | |
6809 | 6820 | | |
| 6821 | + | |
6810 | 6822 | | |
6811 | 6823 | | |
6812 | 6824 | | |
| |||
0 commit comments