containers / virtcontainers

A Go package for building hardware virtualized container runtimes
Apache License 2.0
139 stars 43 forks source link

container: fix semantic error when container state is modified #589

Closed devimc closed 6 years ago

devimc commented 6 years ago

the container returned by createContainer must be the same contained in pod.containers, this patch is needed to avoid semantic errors manipulating references to containers with the same container ID, but different memory address

fixes #588

Signed-off-by: Julio Montes julio.montes@intel.com

jodh-intel commented 6 years ago

Hi @devimc - could you add a test for this please?

devimc commented 6 years ago

@jodh-intel yes