Repository: incubator-mynewt-core Updated Branches: refs/heads/1_0_0_dev e712b40ed -> 0db6321a7
MYNEWT-656; kernel/os - fix memory corruption by os_mbuf_copyinto(). Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/0db6321a Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/0db6321a Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/0db6321a Branch: refs/heads/1_0_0_dev Commit: 0db6321a75deda126943aa187842da6b977cd1c1 Parents: e712b40 Author: Marko Kiiskila <[email protected]> Authored: Tue Mar 7 13:35:32 2017 -0800 Committer: Marko Kiiskila <[email protected]> Committed: Tue Mar 7 13:38:00 2017 -0800 ---------------------------------------------------------------------- kernel/os/src/os_mbuf.c | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/0db6321a/kernel/os/src/os_mbuf.c ---------------------------------------------------------------------- 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 @@ os_mbuf_copyinto(struct os_mbuf *om, int off, const void *src, int len) } cur = next; + cur_off = 0; } /* Append the remaining data to the end of the chain. */
