[PATCH openEuler-5.10 066/146] tracing: Add length protection to histogram string copies