Re:A gentle introduction to static analyzers for C
by bjourne on Thursday September 28, 2023 @03:53PM
(#37694884)
Nah, those are type errors. Some languages use case so that FOO can never have the same type as foo. Nothing prevents a type system from similarly distinguishing between get_foo() and set_foo().
n_bytes could easily be negative if a byte offset, or as a sentinel.
This is why we have a type system, to express these things :)