pg_store_plans icon indicating copy to clipboard operation
pg_store_plans copied to clipboard

Add a null-check for stored plan text in pg_store_plans_internal().

Open harukat opened this issue 8 months ago • 0 comments

Variable pstr retrieved from function ptext_fetch() can be NULL due to various factors. Previously, pstr was passed as-is to each per-format process and used in strlen(), causing a crash when it was NULL.

This is a fix for #34 issue. https://github.com/ossc-db/pg_store_plans/issues/34

harukat avatar Jul 02 '24 04:07 harukat