<div dir="ltr">On Sat, Jan 11, 2014 at 6:14 PM, Bhushan Shah <span dir="ltr"><<a href="mailto:bhush94@gmail.com" target="_blank">bhush94@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br>
<br>
I am getting crash in plasmapkg --list-types, I can not find required<br>
component on BKO so reporting it here.<br>
<br>
#0 Plasma::PlasmaPkgPrivate::renderTypeTable (this=0x8064d68,<br>
plugins=...) at<br>
/home/bshah/kdesrc/plasma-framework/src/plasmapkg/plasmapkg.cpp:488<br>
#1 0x08052370 in Plasma::PlasmaPkgPrivate::listTypes (this=0x8064d68)<br>
at /home/bshah/kdesrc/plasma-framework/src/plasmapkg/plasmapkg.cpp:560<br></blockquote><div><br></div><div>hmm, the code at plasmapkg.cpp:488 seriously stinks:</div><div><div>if (pluginIt.value()[1].length() > paccessed as an arraythWidth) {</div>
<div> pathWidth = pluginIt.value()[1].length();</div><div> }</div></div><div><br></div><div>pluginIt.value() is a qstringList, so should never be accessed an array, and from the code is not clear what it actually *is*</div>
<div><br></div><div>so, if i'm explained what the code is supposed to do, should be trivial to fix (and make it a bit clearer)</div><div><br></div><div>--</div><div>Marco Martin</div></div></div></div>