Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-3877

openssl: Protect dynamic c structures in wrapper functions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Higher
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None

      Description

      The upstream openssl wrapper has a potential problem where the garbage collector can accidentally call finalizer functions before entering a C function (see attachment for an example where this happens).

      Acceptance criteria:

      • Update our OpenSSL fork and make sure all functions using cgo call with a C-type structure with a finalizer ends with a call to runtime.KeepAlive with the C-type structure as argument.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              alfrunes Alf-Rune Siqveland
              Reporter:
              alfrunes Alf-Rune Siqveland
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support