[PATCH openEuler-1.0-LTS 29/60] tracing: Correct the length check which causes memory corruption