Commit b7db0e3
RoomWithOutRoof
crypto: replace CHECK with NULL checks for EVP_CIPHER_CTX_new allocations
Replace CHECK() assertions with proper NULL checks and error returns
for EVP_CIPHER_CTX_new() allocations. CHECK() causes an abort()
on failure, which is not appropriate for recoverable allocation failures.
Instead, return a failure status or throw a proper crypto error.
Fixes: #627741 parent 58a8e1d commit b7db0e3
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
342 | 346 | | |
343 | 347 | | |
344 | 348 | | |
| |||
0 commit comments