Skip to content

Bluetooth: Fix not accepting string equal to CONFIG_BT_DEVICE_NAME_MAX #15075

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

Merged
merged 1 commit into from
Apr 1, 2019

Conversation

Vudentz
Copy link
Collaborator

@Vudentz Vudentz commented Apr 1, 2019

In order to accept string of the same size entered in
CONFIG_BT_DEVICE_NAME_MAX an extra byte must be allocated to guarantee
it will always be NULL terminated.

Fixes #15067

Signed-off-by: Luiz Augusto von Dentz [email protected]

In order to accept string of the same size entered in
CONFIG_BT_DEVICE_NAME_MAX an extra byte must be allocated to guarantee
it will always be NULL terminated.

Fixes zephyrproject-rtos#15067

Signed-off-by: Luiz Augusto von Dentz <[email protected]>
@Vudentz Vudentz requested review from jhedberg and sjanc as code owners April 1, 2019 12:03
@aescolar aescolar added bug The issue is a bug, or the PR is fixing a bug area: Bluetooth labels Apr 1, 2019
@aescolar aescolar added this to the v1.14.0 milestone Apr 1, 2019
@codecov-io
Copy link

Codecov Report

Merging #15075 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #15075   +/-   ##
=======================================
  Coverage   52.93%   52.93%           
=======================================
  Files         309      309           
  Lines       45268    45268           
  Branches    10451    10451           
=======================================
  Hits        23961    23961           
  Misses      16542    16542           
  Partials     4765     4765

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 766edd4...78a0264. Read the comment docs.

@Vudentz
Copy link
Collaborator Author

Vudentz commented Apr 1, 2019

@paulgavrikov

@paulgavrikov
Copy link

@Vudentz Looks good.

@jhedberg jhedberg merged commit c581163 into zephyrproject-rtos:master Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants