forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5b5db41
committed
Fix unchecked return value from strdup
The pg_dump compression was using strdup() instead of pg_strdup()and failed to check the returned pointer for out-of-memory beforedereferencing it. Fix by using pg_strdup() instead which probablywas the intention here in the original patch.Backpatch to v16 where pg_dump compression was introduced.Reviewed-by: Tristan Partin <tristan@neon.tech>Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>Discussion:https://postgr.es/m/CC661D60-6F4C-474D-B9CF-E789ACA3CEFC@yesql.seBackpatch-through: 161 parent94415b0 commit5b5db41
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
0 commit comments
Comments
(0)