Skip to content

Logger must always NUL-terminate on no-arg path#73

Open
k8ika0s wants to merge 1 commit into
IBM:mainfrom
k8ika0s:qe/issue-04-logger-nul-termination
Open

Logger must always NUL-terminate on no-arg path#73
k8ika0s wants to merge 1 commit into
IBM:mainfrom
k8ika0s:qe/issue-04-logger-nul-termination

Conversation

@k8ika0s
Copy link
Copy Markdown

@k8ika0s k8ika0s commented Apr 15, 2026

Fixes #43

Summary

  • Logger must always NUL-terminate on no-arg path.

Why

Changes

  • Implemented on branch qe/issue-04-logger-nul-termination.
  • Includes code and tests scoped to this issue.

Validation

  • s390x integrated battery pass recorded in artifacts/final-validation-20260212T173158Z.
  • Targeted regressions for this scope were validated during branch prep.

Notes

  • DCO signoffs are present on branch commits.

What: Ensure log_message() always NUL-terminates output even when called without extra args.

Why: Unterminated strings can trigger undefined reads and leak garbage/memory contents into logs.

Expected impact: Safer, deterministic logging behavior under all call patterns.

Tests: add regression for NUL termination/truncation behavior (tests/testDriver_logger_nul_termination.c).
Signed-off-by: Kaitlyn Davis <k8ika0s@gmail.com>
Signed-off-by: Kaitlyn Davis <kaitlyn.davis@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Logger Must Always NUL-Terminate on No-Arg Path

1 participant