Re:Kakoune Code Editor
by sidkshatriya on Tuesday January 18, 2022 @05:38PM
(#29987110)
> tries to write to memory that it shouldn’t have
To elaborate what I mean here is maybe the program tried to write to an address not mapped to its address space etc. This happens due to bugs in the program e.g. not calculating the offset into an array properly and so forth. There are many ways to mess up when using C/C++!
You can segfault in rust, too:
fn totally_safe() -> i32 {
unsafe { *std::ptr::null() }
}
This commonly happens if the person who wrote 'totally safe' thinks what they're doing is fine, and it actually isn't.
In that respect this is true for any C/C++ application. Kakoune keeps fixing these issues as they come up.