News for hackers. Stuff that matters.
Re:64bit Pointer Truncation in Meterpreter by humbledrone on Saturday September 14, 2013 @04:21AM (#6385039)
This is the reason that you enable all of the compiler warnings that you possibly can, and treat them as errors. For instance I believe that gcc's -Wconversion would catch an implicit cast from a long to an int (and I'm sure there's a Visual C++ warning for the same problem).

There is simply no excuse to work with warnings like this disabled. If you come across a codebase that was built without such warnings, turn them on and have fun finding out about tons of bugs that could have been trivially avoided.

There are no comments on this comment yet.