[kmymoney] [Bug 464870] Crash when importin investments CSV

Thomas Baumgart bugzilla_noreply at kde.org
Thu Feb 2 16:37:03 GMT 2023


https://bugs.kde.org/show_bug.cgi?id=464870

--- Comment #8 from Thomas Baumgart <tbaumgart at kde.org> ---
I would not want to check that before every loop but in a central spot. If
start is -7 and end is -1 then the for loop still gets executed because -7 is
less than -1. The crash happens on this line

            symbol = m_file->m_model->item(row, symbolCol)->text().trimmed();

and with row being negative, m_file->m_model->item() will definitely return a
null pointer. OTOH, it could be that the item does not even exist. In this
case, item() also returns a null pointer according to the Qt docs.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list