News for hackers. Stuff that matters.
Re:C++ by Example by gpderetta on Friday September 23, 2022 @04:28AM (#32949342)
This is bad, but it is really no different than:

    int * b = new int;
    *++b;
Dereferencing past the end is always UB in C and C++ and it is hard to fix at the language level when using raw pointers.

There are no comments on this comment yet.