import assistant: fix variable width after guesser with output constraints
commita32b9446ea1260d23f1415798eaaced92c399395
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Thu, 21 Nov 2024 12:25:10 +0000 (21 13:25 +0100)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Thu, 21 Nov 2024 12:25:10 +0000 (21 13:25 +0100)
treea67bced0a73b37633b7d17fb8aa0172239bc83e6
parent395ff81461c2f58e9e700ee777f28ffd16241bf1
import assistant: fix variable width after guesser with output constraints

The current code fixes the guessed variable width according to
input constraints. But the data output stages checks the
width against output constraints. The minimum width for FMT_E
is 1 for input and 6 for output. When the guesser proposes FMT_E
with width 5, then 5 is chosen. With this patch, the width is
fixed to 6.

Thanks to Fatemeh Ilkhani for reporting the bug and providing a
csv that triggers the crash.

Closes: https://savannah.gnu.org/bugs/?66456
src/ui/gui/psppire-import-textfile.c