Details
-
Type:
Bug
-
Status: Done
-
Priority:
Higher
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Sprint:MEN Sprint 118
-
Story Points:8
-
Epic Link:
-
Backlog:yes
-
Days in progress:1
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
- relates to
-
MEN-4123 Run DBus code through valgrind to make sure there are no memory leaks
-
- Done
-