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

lib: fix strncpy usage #21

Closed

Conversation

tomi-font
Copy link

@tomi-font tomi-font commented Sep 23, 2024

Cherry picks from upstream PR OpenAMP/open-amp#620.
This fixes stringop-truncation compilation errors.

bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 23, 2024
This should be removed once
zephyrproject-rtos/open-amp#21 is merged.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 23, 2024
This should be removed once
zephyrproject-rtos/open-amp#21 is merged.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 24, 2024
This should be removed once
zephyrproject-rtos/open-amp#21 is merged.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 24, 2024
This should be removed once
zephyrproject-rtos/open-amp#21 is merged.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 24, 2024
This should be removed once
zephyrproject-rtos/open-amp#21 is merged.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
open-amp/lib/remoteproc/remoteproc.c Outdated Show resolved Hide resolved
bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 25, 2024
This should be removed once
zephyrproject-rtos/open-amp#21 is merged.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 25, 2024
This should be removed once
zephyrproject-rtos/open-amp#21 is merged.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 27, 2024
This should be removed once
zephyrproject-rtos/open-amp#21 is merged.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 27, 2024
This should be removed once
zephyrproject-rtos/open-amp#21 is merged.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 27, 2024
This should be removed once
zephyrproject-rtos/open-amp#21 is merged.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
bjarki-andreasen added a commit to bjarki-andreasen/sdk-zephyr that referenced this pull request Sep 30, 2024
This should be removed once
zephyrproject-rtos/open-amp#21 is merged.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
@tomi-font tomi-font changed the title lib: fix usage of strncpy lib: remoteproc: replace strncpy with internal strlcpy Sep 30, 2024
@tomi-font tomi-font force-pushed the cherry_pick_strncpy_fix branch 2 times, most recently from 2e8faee to 1686dbd Compare September 30, 2024 10:09
@tomi-font tomi-font changed the title lib: remoteproc: replace strncpy with internal strlcpy lib: fix strncpy usage Sep 30, 2024
Copy link
Collaborator

@tejlmand tejlmand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open-amp PRs cannot been directly on top of the Zephyr open-amp fork, because the open-amp project is being filtered (apps folder removed) and placed in a sub-folder named open-amp, thus any upstream open-amp PRs must be manually adjusted to work.
See also:
https://github.com/zephyrproject-rtos/open-amp/blob/master/README
https://github.com/zephyrproject-rtos/open-amp/tree/master

@tejlmand tejlmand added the invalid This doesn't seem right label Sep 30, 2024
Origin:
	OpenAMP/open-amp#620

Commits:
	e233473d14654f08468595ad0dbe8f7e58acf267
	8591566382d055acd33f9d23e6826a8a4b0a1881
	1aecdc737d463b4ff1ece36847f4f2e68d4ffe4a

Status:
	Cherry pick PR that fixes the `stringop-truncation`
	compilation errors due to former usage of `strncpy()`.

Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
@tomi-font
Copy link
Author

Ah right, thanks for noticing. Fixed that. Closing the PR as you made another one that's already merged (would have been nice to also tell about this!).

@tomi-font tomi-font closed this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants