Re:Cap'n'Proto remote vuln: pointer overflow check optimized...
by madmoose on Friday April 21, 2017 @05:40AM
(#14164174)
For the simplified example given in the CVE:
Here's how I'd do it. (Caveat emptor, not knowing all the relevant types in the example, etc.)
In general you can never compare pointers unless they point into the same array or object. In fact, even creating an invalid pointer is UB, you don't event have to compare or dereference it.
[ Parent
| on HN ]
There are no comments on this comment yet.