commit | 0db6321a75deda126943aa187842da6b977cd1c1 | [log] [tgz] |
---|---|---|
author | Marko Kiiskila <marko@runtime.io> | Tue Mar 07 13:35:32 2017 -0800 |
committer | Marko Kiiskila <marko@runtime.io> | Tue Mar 07 13:38:00 2017 -0800 |
tree | adb3d1e97620f4b2395df4f8ca150ef063927cda | |
parent | e712b40ed60dfe0abee7a30c27dfcad4880198e1 [diff] |
MYNEWT-656; kernel/os - fix memory corruption by os_mbuf_copyinto().
diff --git a/kernel/os/src/os_mbuf.c b/kernel/os/src/os_mbuf.c index 28dec0b..7888a86 100644 --- a/kernel/os/src/os_mbuf.c +++ b/kernel/os/src/os_mbuf.c
@@ -1086,6 +1086,7 @@ } cur = next; + cur_off = 0; } /* Append the remaining data to the end of the chain. */