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

hmac.c: fix mismatching function prototype #537

Merged
merged 1 commit into from
Jul 2, 2021

Commits on Jul 1, 2021

  1. hmac.c: fix mismatching function prototype

    The reported function raises a warning when compilers assert the flag
    `-Warray-parameter=`, signaling that an array-type argument was promoted
    to a pointer-type argument.
    
    While in practice in most C implementations this is correct, fixing the
    warning (and, in this case, indicating the maximum size for the array)
    would represent a best-practice for finding out-of-bound accesses or
    identifying wrongly-sized arrays passed in the function.
    
    Signed-off-by: Francesco Giancane <francesco.giancane@accenture.com>
    Francesco Giancane committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    3edb5fb View commit details
    Browse the repository at this point in the history