Skip to content

Harden malloc_aligned_4k (overflow guard + quiet failure)#75

Open
k8ika0s wants to merge 1 commit into
IBM:mainfrom
k8ika0s:qe/issue-06-malloc4k-hardening
Open

Harden malloc_aligned_4k (overflow guard + quiet failure)#75
k8ika0s wants to merge 1 commit into
IBM:mainfrom
k8ika0s:qe/issue-06-malloc4k-hardening

Conversation

@k8ika0s
Copy link
Copy Markdown

@k8ika0s k8ika0s commented Apr 15, 2026

Fixes #45

Summary

  • Harden malloc_aligned_4k (overflow guard + quiet failure).

Why

Changes

  • Implemented on branch qe/issue-06-malloc4k-hardening.
  • 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: Add overflow guards in malloc_aligned_4k() and avoid printing to stderr on allocation failures.

Why: Overflow in size calculations is a memory-safety risk; stderr output from a library is hostile to integrators.

Expected impact: Deterministic NULL returns for overflow sizes and cleaner integration logs.

Tests: cover overflow guard + quiet-failure semantics (tests/testDriver_malloc4k.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] Harden malloc_aligned_4k (Overflow Guard + Quiet Failure)

1 participant