Commit d2747b0
Ivan Zhakov
bcrypt: Destroy BCrypt hash context using BCryptDestroyHash(). We allocate
memory for BCrypt hash context from APR pool, so existing code didn't have
memory leak. But in theory BCrypt may have other resources besides memory
used by context itself.
* subversion/libsvn_subr/checksum_bcrypt.c
(bcrypt_ctx_cleanup): New. APR pool cleanup handler to cleanup bcrypt_ctx_t.
(bcrypt_ctx_init): Register APR pool cleanup handler.
(bcrypt_ctx_reset, bcrypt_checksum): Destroy BCrypt hash context using
BCryptDestroyHash().
git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1936009 13f79535-47bb-0310-9956-ffa450edef681 parent d24a2ab commit d2747b0
1 file changed
Lines changed: 51 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
96 | 115 | | |
97 | 116 | | |
98 | 117 | | |
| |||
102 | 121 | | |
103 | 122 | | |
104 | 123 | | |
105 | | - | |
106 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
107 | 130 | | |
108 | 131 | | |
109 | 132 | | |
| |||
162 | 185 | | |
163 | 186 | | |
164 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
165 | 194 | | |
166 | | - | |
| 195 | + | |
167 | 196 | | |
168 | 197 | | |
169 | 198 | | |
| |||
175 | 204 | | |
176 | 205 | | |
177 | 206 | | |
| 207 | + | |
178 | 208 | | |
179 | 209 | | |
180 | 210 | | |
| |||
198 | 228 | | |
199 | 229 | | |
200 | 230 | | |
201 | | - | |
202 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
203 | 238 | | |
204 | 239 | | |
205 | 240 | | |
206 | 241 | | |
207 | 242 | | |
208 | | - | |
209 | | - | |
210 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
211 | 254 | | |
212 | 255 | | |
213 | 256 | | |
| |||
0 commit comments