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

Wrap Char in array to avoid pointer arithmetic #3695

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

carlsmedstad
Copy link
Contributor

This resolves the following finding reported by Coverity Static Analysis v2023.6.1 on include/fmt/format.h#L1959:

  • ptr_arith: Using &v as an array. This might corrupt or misinterpret adjacent memory locations.

Resolves #3694.

This resolves the following finding reported by Coverity Static Analysis
v2023.6.1 on line 1964 of fmt/include/fmt/format.h:

  ptr_arith: Using &v as an array. This might corrupt or misinterpret
             adjacent memory locations.
@vitaut vitaut merged commit e0d3e34 into fmtlib:master Oct 31, 2023
40 checks passed
@vitaut
Copy link
Contributor

vitaut commented Oct 31, 2023

Thanks

ckerr pushed a commit to transmission/fmt that referenced this pull request Nov 7, 2023
This resolves the following finding reported by Coverity Static Analysis
v2023.6.1 on line 1964 of fmt/include/fmt/format.h:

  ptr_arith: Using &v as an array. This might corrupt or misinterpret
             adjacent memory locations.
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.

High impact Coverity finding in include/fmt/format.h
2 participants