Uploaded image for project: 'Celix'
  1. Celix
  2. CELIX-30

Memory bug in service registration

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      In the module service_registration.c the className value is assigned to the provided char pointer, but ownership is not claimed.
      Solution: change line 77 in service_registration from to:
      (*registration)->className = serviceName;
      (*registration)->className = apr_pstrdup(pool,serviceName);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pnoltes Pepijn Noltes
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: