Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-34

Malformed data in cursor.execute() causes a Segementation Fault

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 0.9.53
    • DBAPI 2.0
    • None
    • Python 3.7.5 on Ubuntu 19.10

    Description

      While testing cursor.executemany() for Docs, I mistyped and called execute() with a tuple of tuples passed as data, which resulted in a segmentation fault.

      cur.execute("INSERT INTO test.t1(fname, sname) VALUES (?, ?)", (("Walker", "Percy"), ("Flannery", "O'Connor")))

      Believe we should have a check of some kind to prevent malformed data from crashing the program.

      Attachments

        Activity

          People

            georg Georg Richter
            KennethDyer Kenneth Dyer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.