[Kmymoney-devel] [kmymoney4] [Bug 326739] KMyMoney crashes when attempting on-line price update with suspect source parameters.

Cristian Oneț onet.cristian at gmail.com
Mon Oct 28 08:18:13 UTC 2013


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |onet.cristian at gmail.com

--- Comment #3 from Cristian Oneț <onet.cristian at gmail.com> ---
OK, I see now, the problem is this line [1]. QTextCodec::codecForName is used
wihtou checking if a codec is actually returned. This should be changed to

QTextCodec * codec = QTextCodec::codecForName(prober.encoding());
if (!codec)
  codec = QTextCodec::codecForLocale();
codec->toUnicode(page);

[1]
https://projects.kde.org/projects/extragear/office/kmymoney/repository/revisions/4.6/entry/kmymoney/converter/webpricequote.cpp#L138

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


More information about the KMyMoney-devel mailing list