forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdd0e37c
committed
Fix assign_record_type_typmod().
If an error occurred in the wrong place, it was possible to leave anunintialized entry in the hash table, leading to a crash. Fixed.Also, be more careful about the order of operations so that anallocation error doesn't leak memory in CacheMemoryContext orunnecessarily advance NextRecordTypmod.Backpatch through version 11. Earlier versions (prior to35ea756)do not exhibit the problem, because an uninitialized hash entrycontains a valid empty list.Author: Sait Talha Nisanci <Sait.Nisanci@microsoft.com>Reviewed-by: Andres FreundDiscussion:https://postgr.es/m/HE1PR8303MB009069D476225B9A9E194B8891779@HE1PR8303MB0090.EURPRD83.prod.outlook.comBackpatch-through: 111 parent9f6be2e commitdd0e37c
1 file changed
+23
-5
lines changedLines changed: 23 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1968 | 1968 |
| |
1969 | 1969 |
| |
1970 | 1970 |
| |
1971 |
| - | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
1972 | 1976 |
| |
1973 | 1977 |
| |
1974 |
| - | |
| 1978 | + | |
1975 | 1979 |
| |
1976 | 1980 |
| |
1977 | 1981 |
| |
1978 | 1982 |
| |
1979 | 1983 |
| |
1980 | 1984 |
| |
1981 | 1985 |
| |
1982 |
| - | |
1983 | 1986 |
| |
1984 | 1987 |
| |
1985 | 1988 |
| |
1986 | 1989 |
| |
1987 | 1990 |
| |
1988 | 1991 |
| |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
1989 | 1998 |
| |
1990 | 1999 |
| |
1991 | 2000 |
| |
1992 | 2001 |
| |
1993 | 2002 |
| |
1994 |
| - | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
1995 | 2008 |
| |
1996 |
| - | |
1997 | 2009 |
| |
1998 | 2010 |
| |
1999 | 2011 |
| |
2000 | 2012 |
| |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
2001 | 2019 |
| |
2002 | 2020 |
| |
2003 | 2021 |
| |
|
0 commit comments
Comments
(0)