Skip to content
Commit 6f95a505 authored by Curtis Malainey's avatar Curtis Malainey Committed by Carles Cufí
Browse files

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: default avatarCurtis Malainey <cujomalainey@chromium.org>
parent d056455f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment