[PATCH openEuler-1.0-LTS 71/82] tracing: Check length before giving out the filter buffer