[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 280581] KDevelop-4.2.3 crashes on startup.
From:       Milian Wolff <mail () milianw ! de>
Date:       2011-08-28 13:52:27
Message-ID: E1Qxfml-0008DF-O1 () bugs ! kde ! org
[Download RAW message or body]

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


Milian Wolff <mail@milianw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|NOR                         |HI
             Status|UNCONFIRMED                 |NEW
                 CC|                            |aleixpol@kde.org
          Component|general                     |Build tools: CMake
     Ever Confirmed|0                           |1




--- Comment #2 from Milian Wolff <mail milianw de>  2011-08-28 13:52:27 ---
Aleix, I just had a look at the sources:


bool OptionAst::parseFunctionInfo( const CMakeFunctionDesc& func )
{
    if(func.name.toLower()!="option" || (func.arguments.count()<2 &&
func.arguments.count()>3))
        return false;
    ...

the || (...) stuff is always false as func.arguments.count() cannot be <2 &&
>3! This is most definitely an error which could lead to crashes like the above
in the following code in release-builds.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic