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

rocm: fix snprintf handling #43

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

gcongiu
Copy link
Contributor

@gcongiu gcongiu commented Jul 6, 2023

Pull Request Description

The expected return value from snprintf, in the rocm component, is < PAPI_MAX_STR_LEN. If it is >= PAPI_MAX_STR_LEN, the input string was longer than the output string. This PR fixes the rocm component code to align it to the given description.

Author Checklist

  • Description
    Why this PR exists. Reference all relevant information, including background, issues, test failures, etc
  • Commits
    Commits are self contained and only do one thing
    Commits have a header of the form: module: short description
    Commits have a body (whenever relevant) containing a detailed description of the addressed problem and its solution
  • Tests
    The PR needs to pass all the tests

@gcongiu gcongiu requested a review from adanalis July 7, 2023 08:24
@gcongiu gcongiu force-pushed the 2023.07.06_rocm-snprintf-fix branch from 84c644e to 6a1f5a5 Compare July 12, 2023 09:38
@gcongiu gcongiu requested a review from jagode July 24, 2023 18:39
The expected return value from snprintf is < PAPI_MAX_STR_LEN. If it is
>= PAPI_MAX_STR_LEN, the input string was longer than the output
string and this is an unexpected condition that needs to be handled
properly.
@gcongiu gcongiu merged commit 2c816bd into icl-utk-edu:master Sep 7, 2023
8 of 9 checks passed
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