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

Stable branch: fix for clang 19 compiler warnings #2104

Open
wants to merge 2 commits into
base: stable
Choose a base branch
from

Conversation

shikokuchuo
Copy link
Contributor

Fixes #2103 Warnings with recent compilers clang 19

(1) First commit just cherry-picks your fix from main.
(2) Provides a simple wrapper for nni_aio_free() for use in a reap list to silence UBSAN.

Note these target the stable branch. Do feel free to cherry pick the second commit back to main.

Thanks!

gdamore and others added 2 commits February 17, 2025 09:51
Because it is typically associated with insecure code, use of sprintf
is discouraged.  Note that our usage was actually quite careful and
not insecure, but its mere presence raises concern especially by parties
who are unwilling or unable to assess the actual code for correctness.

A better choice here would be strlcat, but strlcat is not universally
available.

(cherry picked from commit d0d48ca)
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.

2 participants