[PATCH 5.4 407/462] tracing: Consider the NULL character when validating the event length