Dear developers,

I was trying to check out the new MITK. Unfortunately it crashes immediately 
(ExtApp as well as CoreApp) due to a bug in mpilog.cpp.
In line 517 std::size_t size = path.size() - 3 has an underflow if path.size() 
< 3  which causes an out-of-bounds index in line 518. This happens for me since 
I have got the string "." in the path vector. I am using the latest trunk 
version (rev 20708). Is there a fix/workaround? I have no idea what this 
function is supposed to do...

    bool search2p2(char *a,char *b,bool optimize=true)
    {
517      std::size_t size = path.size() - 3;
      for(std::size_t r=0;r<size;r++)
518        if(path[r].compare(a)==0 && path[r+1].compare(b)==0)
        {
          pos = r+2;
          category = 
concat(simplify(path[pos]),simplify(path[path.size()-1]),optimize);
          return true;
        }
      return false;
    }

Best,
Michael.

Siemens AG
Corporate Technology
CT SE 5
Günther-Scharowsky-Str. 1
91058 Erlangen, Deutschland
Tel.: +49 (9131) 7-34627
Fax: +49 (9131) 7-33190
Mobil: +49 (173) 6974642
mailto:[email protected]

Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Gerhard Cromme; 
Vorstand: Peter Löscher, Vorsitzender; Wolfgang Dehen, Heinrich Hiesinger, Joe 
Kaeser, Barbara Kux, Hermann Requardt, Siegfried Russwurm, Peter Y. Solmssen; 
Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin 
Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to