MATCH FILES: Fix crash in string variable resizing.
commit53a4da1f0627ebcb0a63d914a2e65fc42b949ba3
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 30 Sep 2023 20:19:21 +0000 (30 13:19 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 30 Sep 2023 20:29:05 +0000 (30 13:29 -0700)
treebcfe037384cf2165cad06927ac6f7febd17155b5
parent30d83ce86bca0ceeedc9362f05a07080d919ddf1
MATCH FILES: Fix crash in string variable resizing.

Commmit 638bf380e550 ("combine-files: Allow matching string
variables to have different widths.") introduced a bug in the
case where the variables in data files being combined didn't
have the same variable order.  This is kind of an
embarrassing bug since the input files having the same order
of variables is an exceptional case anyhow.  This commit
should fix the problem.

The test as updated will crash if the bug regresses.

Thanks to Frans Houweling for reporting the bug.
src/language/commands/combine-files.c
tests/language/commands/match-files.at