Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confd: fix double free of container hostname #716

Merged
merged 1 commit into from
Oct 16, 2024

Commits on Oct 15, 2024

  1. confd: fix double free of container hostname

    Fix a double free in the memory minefield surrounding container
    hostname provisioning. The hostnamefmt() function already does free()
    on success.
    
    This caused all sorts of mayhem when working with multiple containers.
    However it mainly manifested itself by some containers not starting
    due to there activation script being polluted with gibberish
    name data. Your symptom might be different..
    
    Example of polluted activation script:
    container --hostname foobar --net veth0k -r always \
      create ^S@`M-}^G docker://ghcr.io/kernelkit/curios:edge
    
    Signed-off-by: Richard Alpe <[email protected]>
    rical committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    3b4d2b3 View commit details
    Browse the repository at this point in the history