Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5b0e7fe

Browse files
committed
Fix use-after-free with multirange types in CREATE TYPE
The code was freeing the name of the multirange type function stored inthe parse tree but it should not do that. Event triggers could forexample look at such a corrupted parsed tree with a ddl_command_endevent.Author: Alex Kozhemyakin, Sergey ShinderukReviewed-by: Peter Eisentraut, Michael PaquierDiscussion:https://postgr.es/m/d5042d46-b9cd-6efb-219a-71ed0cf45bc8@postgrespro.ruBackpatch-through: 14
1 parent780054b commit5b0e7fe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

‎src/backend/commands/typecmds.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,6 @@ DefineRange(ParseState *pstate, CreateRangeStmt *stmt)
17071707
/* Create cast from the range type to its multirange type */
17081708
CastCreate(typoid,multirangeOid,castFuncOid,'e','f',DEPENDENCY_INTERNAL);
17091709

1710-
pfree(multirangeTypeName);
17111710
pfree(multirangeArrayName);
17121711

17131712
returnaddress;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp