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

QMultiHash::count(key) crashes on empty container

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.0.2
    • Fix Version/s: 6.0.3, 6.1.0 RC
    • Labels:
      None
    • Environment:
      Qt 6.0.2, VS2019 64-bit, Windows 10 20H2
    • Platform/s:
      Windows
    • Commits:
      f226854d256a382a5cc7ff08b10a0d27fbefb0fe (qt/qtbase/dev) 341654213bfd02a448490212e3b9b0d2027dfd2f (qt/qtbase/6.0) 3c224d11228f2560d99078d5f0bf91237657def1 (qt/qtbase/6.1)

      Description

      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();
      }
      

        Attachments

          Issue Links

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes