pivot-table: Fix buffer overflow in corner case in pivot_table_dump().
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 27 Jan 2023 19:43:00 +0000 (11:43 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 27 Jan 2023 19:43:00 +0000 (11:43 -0800)
commit04f15744f2172fe1809e8b815768299751173e39
tree188516fb005929dfb2180b8c99393eb72a9996fa
parent4d4fd34e39a08347a10973a22cd865e948d30c06
pivot-table: Fix buffer overflow in corner case in pivot_table_dump().

Dumping a table with a layer dimension that has no leaves read from an
invalid pointer.  This fixes the problem.  This functionality isn't used
in PSPP, only by "pspp-output dump".
src/output/pivot-table.c
src/output/pivot-table.h