[PATCH openEuler-22.03-LTS-SP1] tracing: Consider the NULL character when validating the event length