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

Container fixups #718

Merged
merged 2 commits into from
Oct 16, 2024
Merged

Container fixups #718

merged 2 commits into from
Oct 16, 2024

Conversation

troglobit
Copy link
Contributor

Description

Ping @rical

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

 - Expand on Docker Hello World
 - Add more pictures to help break up the content a bit

Signed-off-by: Joachim Wiberg <[email protected]>
This refactor, and massive code simplification, is a follow-up to the
double free discovery in 3b4d2b3.

Beacuse a hostname in Linux can never be more than 64 chars, we can
safely use a stack buffer instead of calloc(), reducing complexity
and simplifying the code further with the use of strlcat().

Signed-off-by: Joachim Wiberg <[email protected]>
@troglobit troglobit added the ci:main Build default defconfig, not minimal label Oct 16, 2024
@troglobit troglobit added this to the Infix v24.10 milestone Oct 16, 2024
@rical
Copy link
Contributor

rical commented Oct 16, 2024

Great initiative refactoring this! Unfortunately I don't have time to review the actual code right now, but knowing its refactored will make me sleep better ;-)

Copy link
Contributor

@wkz wkz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 !

@wkz wkz merged commit 7de94b9 into main Oct 16, 2024
6 of 10 checks passed
@wkz wkz deleted the container-fixups branch October 16, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:main Build default defconfig, not minimal
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants