Darren Tucker <> changed:

           What    |Removed                     |Added
             Blocks|2594                        |

--- Comment #3 from Darren Tucker <> ---
I applied then, after some discussion with some folks, reverted your

The rationale is that C11 says:
When two pointers are subtracted, both shall point to elements of the
same array object, or one past the last element of the array object;
result is the difference of the subscripts of the two array elements.

In these cases the objects are arrays of char so the result is defined,
and we believe that the compiler incorrectly trapping on defined

I also found
("Pointer subtraction is broken when using -fsanitize=undefined") which
seems to support this position.

Referenced Bugs:
[Bug 2594] Tracking bug for OpenSSH 7.4 release
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
openssh-bugs mailing list

Reply via email to