Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-30

bugzillaId-487: Buffer manager should not use pointer arithmetic on void*

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.1
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Linux

      Description

      This is imported from bugzilla item: http://bugs.mariadb.com/show_bug.cgi?id=487

      martin.brampton@skysql.com 2014-08-27 09:46:21 UTC
      In the gwbuf_alloc function, the pointer to the end of the data is computed from the void *start. This is illegal according to the C standard: http://stackoverflow.com/questions/3523145/pointer-arithmetic-for-void-pointer-in-c. Correct use is shown in the gwbuf_clone_portion function.

        Attachments

          Activity

            People

            Assignee:
            martin brampton martin brampton (Inactive)
            Reporter:
            martin brampton martin brampton (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration