-
Notifications
You must be signed in to change notification settings - Fork 2k
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
pkg/semtech_loramac: fix memcpy to uninitialized pointer #11847
Conversation
thanks so much for the fix! I will test it now. |
@jia200x do you have lobaro-lorabox too? |
Yes I have. Will try |
it works in |
it works too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK_ This needs a backport to the 2019.07 branch. Could you provide one?
Does that consist of a PR to the release branch of the same commit? |
Yepp. You can use the |
@jia200x should I hit the green button? |
Sure :) Have the honor |
@jia200x thanks for the review! |
Backport provided in #11848 |
Contribution description
#11552 introduced an illegal memcpy to an uni-initialized pointers. This broke loramac for some boards e.g: lobaro-lorabox and broke ABP for most of them. This pr fixes the illegal access.
The PR should be backported to Release 2019.07.
Testing procedure
BOARD=lobaro-lorabox LORA_DRIVER=sx1272 make -C tests/pkg_semtech-loramac/ flash term
with this PR it works as expected.
With this PR it succeeds.
11-lorawan
succeed with b-l072z-lrwan1:Issues/PRs references
fixes #11626
alternative to #11783