Merge "Change buffer_alloc_sz and frame_size type to size_t" into nextgenv2