diff options
Diffstat (limited to 'src/protozero/filtering/message_filter.cc')
-rw-r--r-- | src/protozero/filtering/message_filter.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/protozero/filtering/message_filter.cc b/src/protozero/filtering/message_filter.cc index ff283f869..9808b0cf8 100644 --- a/src/protozero/filtering/message_filter.cc +++ b/src/protozero/filtering/message_filter.cc @@ -18,6 +18,7 @@ #include "perfetto/base/logging.h" #include "perfetto/protozero/proto_utils.h" +#include "src/protozero/filtering/string_filter.h" namespace protozero { @@ -162,7 +163,9 @@ void MessageFilter::FilterOneByte(uint8_t octet) { } else if (state->action == StackState::kFilterString) { *(out_++) = octet; if (state->eat_next_bytes == 0) { - // TODO(lalitm): do the filtering using |filter_string_ptr|. + string_filter_.MaybeFilter( + reinterpret_cast<char*>(state->filter_string_ptr), + static_cast<size_t>(out_ - state->filter_string_ptr)); } } } else { |