mirror of
https://github.com/postgres/postgres.git
synced 2026-02-19 02:29:10 -05:00
The receive function of hstore was not able to handle correctly duplicate key values when a new duplicate links to a NULL value, where a pfree() could be attempted on a NULL pointer, crashing due to a pointer dereference. This problem would happen for a COPY BINARY, when stacking values like that: aa => 5 aa => null The second key/value pair is discarded and pfree() calls are attempted on its key and its value, leading to a pointer dereference for the value part as the value is NULL. The first key/value pair takes priority when a duplicate is found. Per offline report. Reported-by: "Anemone" <vergissmeinnichtzh@gmail.com> Reported-by: "A1ex" <alex000young@gmail.com> Backpatch-through: 14 |
||
|---|---|---|
| .. | ||
| data | ||
| expected | ||
| sql | ||
| .gitignore | ||
| hstore--1.1--1.2.sql | ||
| hstore--1.2--1.3.sql | ||
| hstore--1.3--1.4.sql | ||
| hstore--1.4--1.5.sql | ||
| hstore--1.4.sql | ||
| hstore--1.5--1.6.sql | ||
| hstore--1.6--1.7.sql | ||
| hstore--1.7--1.8.sql | ||
| hstore.control | ||
| hstore.h | ||
| hstore_compat.c | ||
| hstore_gin.c | ||
| hstore_gist.c | ||
| hstore_io.c | ||
| hstore_op.c | ||
| hstore_subs.c | ||
| Makefile | ||
| meson.build | ||