|
|
|
|
|
by pjmlp
4474 days ago
|
|
Who mentioned GC? Modula-2 also uses manual memory management just like C. So by using it, there is a whole class of C errors that are not exploitable: - Buffer overflows - Pointers that go astray, injure some critical data structure, only to die minutes later in another totaly unrelated place. - Strings without null terminator - No implicit conversions between types - Proper enumerations - Arrays are properly bound checked by default (unless explicitly disabled) Still problems like memory leaks and double free exploits do prevail. However the set of possible exploits is surely smaller than C and C++ offer to hackers. |
|