Content-Length: 260970 | pFad | http://github.com/postgrespro/postgres/commit/f93f0b5b25068807051edb2f3510614b69bb79ff

54 Fix use-after-release issue with pg_identify_object_as_address() · postgrespro/postgres@f93f0b5 · GitHub
Skip to content

Commit f93f0b5

Browse files
committed
Fix use-after-release issue with pg_identify_object_as_address()
Spotted by buildfarm member prion, with -DRELCACHE_FORCE_RELEASE. Introduced in f7aab36. Discussion: https://postgr.es/m/2759018.1619577848@sss.pgh.pa.us Backpatch-through: 9.6
1 parent f7aab36 commit f93f0b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/catalog/objectaddress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5619,7 +5619,7 @@ getObjectIdentityParts(const ObjectAddress *object,
56195619
break;
56205620
}
56215621
trigForm = (Form_pg_event_trigger) GETSTRUCT(tup);
5622-
evtname = NameStr(trigForm->evtname);
5622+
evtname = pstrdup(NameStr(trigForm->evtname));
56235623
appendStringInfoString(&buffer, quote_identifier(evtname));
56245624
if (objname)
56255625
*objname = list_make1(evtname);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/f93f0b5b25068807051edb2f3510614b69bb79ff

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy