Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-91704

QMultiHash::count(key) crashes on empty container

XMLWordPrintable

    • Windows
    • f226854d256a382a5cc7ff08b10a0d27fbefb0fe (qt/qtbase/dev) 341654213bfd02a448490212e3b9b0d2027dfd2f (qt/qtbase/6.0) 3c224d11228f2560d99078d5f0bf91237657def1 (qt/qtbase/6.1)

      Using the following code the program crashes.

      QMultiHash count crash
      int main(int argc, char *argv[])
      {
         QCoreApplication a(argc, argv);
      
         QMultiHash<int,int> hash;
         hash.count(2);
      
         return a.exec();
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            laknoll Lars Knoll
            mircomir Mirco Miranda
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes