Skip to content
Success

Changes

Summary

  1. msgb: msgb_copy_resize_c: Fix validation check to avoid memcpy buffer (details)
Commit 4dbbdea658a7f29c2c9e9303713b703272786ed3 by Pau Espin Pedrol
msgb: msgb_copy_resize_c: Fix validation check to avoid memcpy buffer overflow

If msg->data pointer is not allocated at the start of the msgb, (eg.
because it was pull()ed or had some headroom), the existing check
wouldn't catch it and memcpy() would write passed the allocated chunk
(msg->data - msg->_data) bytes.

Change-Id: If4c84162a4e5b44b82813fb58029fae04bd38230
The file was modifiedsrc/core/msgb.c