Merge "libutils: fix overflow in SharedBuffer"