News for hackers. Stuff that matters.
Re:‘Zero-click’ hacks are growing in popularity by radford-neal on Saturday February 19, 2022 @12:26PM (#30398727)
I think it handles all standards-conforming uses of pointer arithmetic. Even systems-level stuff like coercing an address used for memory-mapped IO may work. For example,

    struct dev { int a, b; } *p; p = (struct dev *) 0x12345678; 
should be able to set up p with bounds that allow access only to the a and b fields - eg, producing an error with

    int *q = (int *) p; q[2] = 0;
Of course, it doesn't fix logic errors, such as setting a flag to true that shouldn't be set to true.

There are no comments on this comment yet.