forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7004ce7
committed
Add missing error check in pgcrypto/crypt-md5.c.
In theory, the second px_find_digest call in px_crypt_md5 could faileven though the first one succeeded, since resource allocation isrequired. Don't skip testing for a failure. (If one did happen,the likely result would be a crash rather than clean recovery froman OOM failure.)The code's been like this all along, so back-patch to all supportedbranches.Daniel GustafssonDiscussion:https://postgr.es/m/AA8D6FE9-4AB2-41B4-98CB-AE64BA668C03@yesql.se1 parent05e6fa8 commit7004ce7
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| |||
0 commit comments
Comments
(0)