[PATCH 5.15 51/80] tracing: Consider the NULL character when validating the event length