mono/mono — pull request #281 by JamesB7 (2012-04-29 22:50:07+00:00)
Title: Bug 4723 fix: Socket bounds checks not correct for two's complement math

Hello,

The bounds checks in Socket are not correct for two's complement math and can be evaded.
These commits fix this and also centralize bounds checking for Socket in a single function for easy maintenance.

I have submitted Bug 4723 which corresponds to this pull request.