Fix handling of NULL return value in typarray lookup
Daniel Gustafsson <dgustafsson@postgresql.org>
Fix handling of NULL return value in typarray lookup Commit 6ebeeae29 accidentally omitted testing the return value from findTypeByOid which can return NULL. Fix by adding a check to make sure that we have a pointer to dereference. Author: Ranier Vilela <ranier.vf@gmail.com> Reviewed-by: Nathan Bossart <nathandbossart@gmail.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/CAEudQAqfMTH8Ya_J6E-NW_y_JyDFDxtQ4V_g6nY_1=0oDbQqdg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_dump/pg_dump.c | modified | +4 −1 |
Discussion
- Avoid possible dereference null pointer (src/bin/pg_dump/pg_dump.c) 5 messages · 2024-09-04 → 2024-09-05