You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix send_nb_ negative offset UB and send_len_ OOB read
- Add offset < 0 guard to send_nb_ to prevent pointer arithmetic
underflow on negative offset values
- Add len bounds check to send_len_ to reject negative len or len
exceeding the string length (returns -1/error)
- Update send-len doc to state the precondition
- Add tests for send-nb with non-zero and negative offset
0 commit comments