]> git.meshlink.io Git - meshlink/commit
Fix potential channel buffer corruption when using an application-provided buffer.
authorGuus Sliepen <guus@meshlink.io>
Wed, 17 Mar 2021 20:19:45 +0000 (21:19 +0100)
committerGuus Sliepen <guus@meshlink.io>
Wed, 17 Mar 2021 20:24:59 +0000 (21:24 +0100)
commit773e88d3742739e1a6375b166967d8595965b0e7
treeb12a3aa37061d4d106a032d290c478524bea1c5a
parent0d9b44941fe2b07ba12d56f75c7883ebca2938d8
Fix potential channel buffer corruption when using an application-provided buffer.

If data was still in MeshLink's internal buffer in a wrapped state, and
the application called meshlink_set_channel_*buf_storage(), the wrong
amount of data was copied into the new buffer.
src/utcp.c