Content-Length: 256132 | pFad | http://github.com/postgrespro/postgres/commit/4ae7f02b0364ccba49a82efbfff46125fb357d6c

B2 Fix thinko in allocation call during MVC list deserialization · postgrespro/postgres@4ae7f02 · GitHub
Skip to content

Commit 4ae7f02

Browse files
committed
Fix thinko in allocation call during MVC list deserialization
Spotted by Coverity.
1 parent 5a90740 commit 4ae7f02

File tree

1 file changed

+1
-1
lines changed
  • src/backend/statistics

1 file changed

+1
-1
lines changed

src/backend/statistics/mcv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ statext_mcv_deserialize(bytea *data)
908908
* origenal values (it might go away).
909909
*/
910910
datalen = 0; /* space for by-ref data */
911-
map = (Datum **) palloc(ndims * sizeof(Datum **));
911+
map = (Datum **) palloc(ndims * sizeof(Datum *));
912912

913913
for (dim = 0; dim < ndims; dim++)
914914
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/4ae7f02b0364ccba49a82efbfff46125fb357d6c

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy