[Kmymoney-devel] [kmymoney4] [Bug 312676] Crash when creating a report

Cristian Oneț onet.cristian at gmail.com
Fri Aug 30 10:35:54 UTC 2013


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

Cristian Oneț <onet.cristian at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|http://commits.kde.org/kmym |http://commits.kde.org/kmym
                   |oney/cad7ecbccda1d2b96122bd |oney/03012f548a6501138e31b8
                   |1fb8bb4a37d6c4f8e9          |6853eb2dc6a4cccefe

--- Comment #12 from Cristian Oneț <onet.cristian at gmail.com> ---
Git commit 03012f548a6501138e31b86853eb2dc6a4cccefe by Cristian Oneț.
Committed on 30/08/2013 at 10:25.
Pushed by conet into branch '4.6'.

Fix a crash in reports using the mysql storage backend.

This crash was caused by the fact that the report, after requesting
the transaction list, did not check that the transactions are inside
the requested date interval. Since the date is used to compute an
index in a columns list a date outside the requested interval would
cause an invalid index to be computed and causing the crash.

Now the report performs a validity check of the date after filtering
the transactions.

Also fixed the SQL backend implementation to properly filter by dates
even if an empty split filter is provided. Also added a testcase for
this scenario.
(cherry picked from commit cad7ecbccda1d2b96122bd1fb8bb4a37d6c4f8e9)

M  +15   -0    kmymoney/mymoney/storage/mymoneydatabasemgrtest.cpp
M  +2    -2    kmymoney/mymoney/storage/mymoneystoragesql.cpp
M  +7    -3    kmymoney/reports/pivottable.cpp

http://commits.kde.org/kmymoney/03012f548a6501138e31b86853eb2dc6a4cccefe

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


More information about the KMyMoney-devel mailing list