Menu

Uninitialized class member variable not detected

VG
2014-10-05
2014-10-15
  • VG

    VG - 2014-10-05

    I can't login to Trac for some reason, so will report this here.
    Download and unpack the test files (https://drive.google.com/file/d/0B8Qc2atC6FVKV1BoOVhlR1RKZFk/view?usp=sharing) and run cppcheck in the folder where these files are unpacked with the following arguments:

    --inline-suppr -v --template="{file}|{line}|{severity}|{id}|{message}" --library=windows --library=std --enable=style,information,warning,performance,portability -j 4 -D__cplusplus=199711L -D_MSC_VER=1700 -D_WINDOWS -DUNICODE -DWIN32 -D_SCL_SECURE_NO_WARNINGS -DWIN32_LEAN_AND_MEAN -DNOMINMAX -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -D_WIN32 -D_M_IX86 -D_DEBUG cmainwindow.cpp

    You'll notice that the CMainWindow class has a _quickViewActive bool variable that is used before it is initialized (initializer missing from constructor), but cppcheck gives no warning about this. I believe it's a bug.

     
  • Daniel Marjamäki

    we need to help you setup a trac account. Issues reported here will just be forgotten.

    I assume you looked at the "Register account" here:
    http://trac.cppcheck.net/wiki

    if you have a non-gmail openid I'd recommend that you use that. It should work.

    otherwise, use the htpasswd and I'll create an account for you. Unless you have htpasswd on your computer I recommend:
    1. go to http://www.htaccesstools.com/htpasswd-generator/
    2. input your username and password
    3. press "Create .htpasswd file"
    4. a string will be shown on the webpage such as "username:$apr1$aA.zju4l$WTQQdb7OLg8Vdo1X8Y6wx." please copy paste this full string and send it to me.

     
  • VG

    VG - 2014-10-14

    I used to have a valid cppcheck trac account and have reported a few issues, but I can't login anymore. And trying to login with Google account results in an error: "OpenID auth request contains an unregistered domain: http://trac.cppcheck.net/". Facebook login is not supported, and I don't have accounts in any other of the suggested systems. Tried to create an OpenID account, but apparently I'm not smart enough for that.

    Sent you my htpasswd string.

     

    Last edit: VG 2014-10-14
  • Daniel Marjamäki

    I used to have a valid cppcheck trac account and have reported a few issues, but I can't login anymore.

    For information. Sourceforge shut down trac. So we had to move. Old accounts won't work anymore since we don't use Sourceforge.

    And trying to login with Google account results in an error

    Lots of people are complaining about this. It's very frustrating that it doesn't work. Unfortunately the trac openid-plugin we use doesn't handle gmail accounts currently. I hope it will be fixed.

    Our instructions on http://trac.cppcheck.net say that google doesn't work. But maybe we could be more clear. Do you have any suggestion how we can be more clear?

    Tried to create an OpenID account, but apparently I'm not smart enough for that.

    For instance yahoo works. I have personally created a yahoo account just for cppcheck trac. And it works well.

    Sent you my htpasswd string.

    I'll create an account for you.

     

    Last edit: Daniel Marjamäki 2014-10-15
    • VG

      VG - 2014-10-15

      Thanks!

      Yes, eventually I've seen that it is mentioned Google login does not work. I just wasn't paying attention at first (and I would say that remark doesn't stand out). I don't suppose you could edit the text on the Trac OpenID login page itself?..

       
  • VG

    VG - 2014-10-15
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.