[PATCH openEuler-1.0-LTS 12/25] security: commoncap: fix -Wstringop-overread warning