commit | 6f95a5055399e1030732a76e35492cda378cd161 | [log] [tgz] |
---|---|---|
author | Curtis Malainey <cujomalainey@chromium.org> | Tue Sep 03 15:24:18 2024 -0700 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Fri Oct 11 09:28:21 2024 +0200 |
tree | 9e78ab021a67b1b1ca45de7d2eb23281138cea17 | |
parent | d056455fce1afda41ba7313d1a2998d6bc08aaac [diff] |
lib: fix ubsan errors in cbvprintf_package It is undefined behaviour to shift / add offsets to a null pointer. Move to direct offset tracking to satisfy UBSAN. Simple translation of code: buf0 -> buf buf +=/++ -> offset +=/++ buf = -> buf+offset = Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>