bneradt opened a new pull request, #12722:
URL: https://github.com/apache/trafficserver/pull/12722

   The strstr() calls were being passed strings returned from 
TSMimeHdrFieldValueStringGet, which returns a non-null-terminated string. This 
could lead to reading uninitialized memory.
   
   Fix this by using std::string_view with its find() method to search within 
the non-null-terminated string without requiring a copy.
   
   This takes over the work started by @vuori in #12634.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to