Heikki Linnakangas 0c5783ff30 Avoid integer overflow in hstore_to_json().
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.
2014-02-21 15:47:22 +02:00
..
2013-03-10 17:35:36 -04:00
2011-04-25 22:27:11 +03:00
2013-04-19 09:32:49 -04:00
2010-09-20 22:08:53 +02:00
2013-09-29 22:46:55 -04:00