[bt-devel] crash while using mag window and LXX

jdc jdc.email at gmail.com
Fri Jan 16 18:19:56 MST 2009


The crash is from line 384 in src/frontend/cinfodisplay.cpp
 
if (value.at(1).isDigit())

value.at(1) is crashing on my computer.  In this case value is "C",
which has a length of 1, and the index [1] is not returning
QChar::null.  Instead of returning QChar::null it is crashing.

The Qt documentation, starting at 4.0, states that the index must be a
valid position in the string.  Apparently, they have finally updated the
code to make this statement serious. 
My Qt version is 4.4.3 (all my Qt packages are listed below if you need
that information)


<snip> from src/frontend/cinfodisplay.cpp  (line 377-389)

        // if we don't have a class assigned or desired one isn't
installed...
        if (!module) {
            // Morphs usually don't have [GH] prepended, but some old OLB
            // codes do.  We should check if we're digit after first char
            // to better guess this.
            // No need to check len, if at(1) is > len QChar::null is
            // returned which is ok to .isDigit()
            if (value.at(1).isDigit()) {
                switch (value.at(0).toLatin1()) {
                    case 'G':
                    module = CBTConfig::get
                                    (CBTConfig::standardGreekMorphLexicon);
                    skipFirstChar = true;

</snip>





libpoppler-qt4-2-0.6.4-11.2
libqt4-qt3support-4.4.3-33.1
python-qt4-4.4.4-4.7
libqt4-devel-doc-4.4.3-35.1
libqt4-sql-sqlite-4.4.3-33.1
libqt4-devel-4.4.3-33.1
libpoppler-qt4-3-0.10.1-14.8
libqt4-sql-mysql-4.4.3-25.1
libqt4-sql-4.4.3-33.1
libqt4-x11-4.4.3-33.1
libqt4-4.4.3-33.1
libqt4-devel-doc-data-4.4.3-35.1









Eeli Kaikkonen wrote:
> Quoting jdc <jdc.email at gmail.com>:
>
>> I open the Septuagint (LXX) and hover my mouse over a word.
>> The result is a crash.
>>
>> I just wanted to report it and if I get the time I will debug it.
>
> Interesting. What BibleTime version are you using? Can you give an
> exact verse/word where this is repeatable? Do you have any Strong's or
> morphology modules installed?
>
> --Eeli Kaikkonen
>
>
> _______________________________________________
> bt-devel mailing list
> bt-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/bt-devel
>



More information about the bt-devel mailing list