mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
0c5783ff30
The length of the output buffer was calculated based on the size of the argument hstore. On a sizeof(int) == 4 platform and a huge argument, it could overflow, causing a too small buffer to be allocated. Refactor the function to use a StringInfo instead of pre-allocating the buffer. Makes it shorter and more readable, too. |
||
---|---|---|
.. | ||
data | ||
expected | ||
sql | ||
.gitignore | ||
crc32.c | ||
crc32.h | ||
hstore_compat.c | ||
hstore_gin.c | ||
hstore_gist.c | ||
hstore_io.c | ||
hstore_op.c | ||
hstore--1.0--1.1.sql | ||
hstore--1.1--1.2.sql | ||
hstore--1.2.sql | ||
hstore--unpackaged--1.0.sql | ||
hstore.control | ||
hstore.h | ||
Makefile |