danielealbano / cachegrand

cachegrand - a modern data ingestion, processing and serving platform built for today's hardware
BSD 3-Clause "New" or "Revised" License
975 stars 34 forks source link

Ensure that the log string is only compared for the expected length #350

Closed danielealbano closed 1 year ago

danielealbano commented 1 year ago

Occasionally test_config_internal_log_sink_printer_data will end up containing for data from the stack, to ensure that the test will only compare the correct amount of data, this PR switches it to use strncmp and strlen for the length of the string to compare.