Bug 799494 - Version 5.10 Fails to import QIF file

Require only one split in qif-import:qif-to-gnc, apparently it's too
early to require two.
This commit is contained in:
John Ralls 2024-12-23 17:34:19 -08:00
parent c549e203cb
commit 6531d3e46b

View File

@ -434,7 +434,7 @@
;; there aren't at least 2 splits and that will cause a
;; UAF in xaccTransRecordPrice. See https://bugs.gnucash.org/show_bug.cgi?id=799420
(let ((splits (qif-xtn:splits xtn)))
(if (not (or (qif-xtn:mark xtn) (or (null? splits) (null? (cdr splits)))))
(if (not (or (qif-xtn:mark xtn) (null? splits)))
;; Convert into a GnuCash transaction.
(let ((gnc-xtn (xaccMallocTransaction
(gnc-get-current-book))))