Commit 8dc9eda
committed
Fix use-after-free in GetExtStatisticsName
ReleaseSysCache(htup) was called before NameStr(staForm->stxname) was
read, returning a pointer into the already-released tuple buffer.
Copy the name with pstrdup() first, then release the cache entry.1 parent f00c2b4 commit 8dc9eda
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1621 | 1621 | | |
1622 | 1622 | | |
1623 | 1623 | | |
| 1624 | + | |
| 1625 | + | |
1624 | 1626 | | |
1625 | | - | |
| 1627 | + | |
1626 | 1628 | | |
1627 | 1629 | | |
1628 | 1630 | | |
| |||
0 commit comments