shukitchan opened a new issue, #10934:
URL: https://github.com/apache/trafficserver/issues/10934

   Fuzzing finds out a potential problem in TextView. 
   
   The line in question is 
https://github.com/apache/trafficserver/blob/master/lib/swoc/src/TextView.cc#L64
   
   zret = -zret 
   
   So LONG_MIN is -9223372036854775808 and LONG_MAX is 9223372036854775807
   If zret is LONG_MIN, then -zret will result in overflow and it can result in 
an undefined behavior depending on the system. 
   
   The fuzzing finding for this problem is here - 
https://oss-fuzz.com/testcase-detail/5196561539530752
   You can check out the details of this particular finding from ubsan here 
(under Unary Negation section) - 
https://wiki.sei.cmu.edu/confluence/display/c/INT32-C.+Ensure+that+operations+on+signed+integers+do+not+result+in+overflow


-- 
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