v.19.6Build/Testing/Packaging Improvements

Fix Ubsan Errors #5037 (vitaly Baranov)

Fix ubsan errors #5037 (Vitaly Baranov)