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

Fix safe_strcpy calls #626

Merged
merged 2 commits into from
Oct 25, 2024
Merged

Fix safe_strcpy calls #626

merged 2 commits into from
Oct 25, 2024

Commits on Oct 23, 2024

  1. lib: rpmsg: Fix safe_strcpy call

    Fix the size of the source string passed in argument of safe_strcpy().
    In rpmsg_create_ept we can not trust the size of the name
    string provided, so we limit the max size to RPMSG_NAME_SIZE.
    
    Update the rpmsg_create_ept documentation to clarify the limit
    
    Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
    arnopo committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    8f63a81 View commit details
    Browse the repository at this point in the history
  2. lib: remoteprocrpmsg: Fix safe_strcpy call

    Fix the size of the source string passed in argument of safe_strcpy().
    In rpmsg_register_endpoint we can not trust the size of the name
    string provided, so we limit the max size to RPROC_MAX_NAME_LEN.
    
    Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
    arnopo committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    6b68a74 View commit details
    Browse the repository at this point in the history