lots of changes - please read as this may break your build

Dirk Hohndel dirk at hohndel.org
Wed Dec 12 08:01:37 PST 2012


On Dec 12, 2012, at 7:44 AM, Henrik Brautaset Aronsen wrote:

> Dirk Hohndel wrote:
>> Just pushed a fix. We ended up referencing index -1 of an array.
>> 
>> It is indeed quite interesting how resilient Linux is to stupid memory bugs. Mac OS X seems to be much more aggressive when it comes to failing. And that isn't necessarily a bad thing as it helps us find bugs.
> 
> The fix works great, thanks!
> 
> Aren't there some sort of automated checks that can be run to detect these kinds of errors?

I run both static code checks and a memory bug checker (valgrind) against the code. But not all the time.
Valgrind would definitely have found this bug.

/D


More information about the subsurface mailing list