[PATCH openEuler-1.0-LTS 49/49] profiling: fix shift-out-of-bounds bugs