|
|
|
|
|
by 1718627440
9 days ago
|
|
A dereference in the final binary is not different from Rust. A dereference in the source code, that makes the whole program invalid, so the compiler doesn't emit a credentials check you wanted it to emit, is. For availability and stability concerns, the C approach is actually better, but for security and reproducibility, it is not. |
|
In any case, you can also configure GCC to not do this, and you can also configure it to insert explicit null checks before dereferencing a pointer. So C can offer you security and reproducibility (in this aspect).