News for hackers. Stuff that matters.
Re:The Safe C Library (2009) by duneroadrunner on Wednesday April 12, 2017 @11:48PM (#14104015)
And don't forget the llvm (and gcc) sanitizers[1] and SaferCPlusPlus[2] (essentially a memory safe subset of C++), which are more modern and have arguably better overall combinations of performance/safety/compatibility/practicality.

Automatic translation (assistance) from native C to SaferCPlusPlus is being worked on. And if you'll permit me to gripe a little here - you might think it's a reasonable undertaking, until you start contemplating code like this:

  int **var1 = (int **)malloc(20);
  var1[2] = (int *)malloc(10);
  int *var2 = var1[2] + 4;
  var2--;
  free(var2 - 3);
  free(var1);
:)

[1] https://github.com/google/sanitizers

[2] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus

There are no comments on this comment yet.