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

Backport v1.14: shell: utils: Fix buffer overrun in shell_spaces_trim #23646

Merged
merged 1 commit into from Mar 24, 2020

Conversation

ceolin
Copy link
Member

@ceolin ceolin commented Mar 20, 2020

The third argument in memmove can possible be greater than remaining
buffer size. Just ensuring that memmove will changes bytes only inside
the string buffer and nothing else.

Signed-off-by: Flavio Ceolin flavio.ceolin@intel.com

Backporting #23304 to 1.14 branch

The third argument in memmove can possible be greater than remaining
buffer size. Just ensuring that memmove will changes bytes only inside
the string buffer and nothing else.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
@ceolin ceolin added the backport v1.14-branch Request backport to the v1.14-branch label Mar 20, 2020
@ceolin ceolin added the area: Shell Shell subsystem label Mar 20, 2020
@ceolin ceolin requested review from nashif and d3zd3z March 20, 2020 18:02
@nashif nashif added this to To do in Backports Mar 21, 2020
@carlescufi carlescufi moved this from To do to Ready in Backports Mar 24, 2020
@nashif nashif merged commit 13fd2d3 into zephyrproject-rtos:v1.14-branch Mar 24, 2020
Backports automation moved this from Ready to Done Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Shell Shell subsystem backport v1.14-branch Request backport to the v1.14-branch
Projects
Backports
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants