trace filtering: avoid dereferencing vector[end]
trace filtering: avoid dereferencing vector[end]

The current code is hitting some assertions in debug
versions of some C libraries. The problem is the following:
indexing an out-of-bounds element of the array causes an
abort even if the pointer itself is never dereferenced.
Move the |end| pointer computation to be based on data() + size.

Bug: 181306741
Change-Id: If158ab05e86e30b4f765e69fb63710b04ad4bba6
google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto