[PATCH openEuler-21.03 10/10] tracing: Correct the length check which causes memory corruption