reallocing without oom check in pg_regress
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2022-02-23T21:32:30Z
Lists: pgsql-hackers
Attachments
- pg_regress_realloc.diff (application/octet-stream) patch
In pg_regress we realloc() with the destination and source pointer being equal, without checking for OOM. While a fairly unlikely source of errors, is there a reason not to use pg_realloc() there for hygiene? -- Daniel Gustafsson https://vmware.com/
Commits
-
Guard against reallocation failure in pg_regress
- 31d8d4740ffb 15.0 landed