←back to thread

327 points AareyBaba | 1 comments | | HN request time: 0.195s | source
Show context
mainecoder ◴[] No.46193095[source]
Did they really have to tell their programmers this ? (see Page 52) AV Rule 174 (MISRA Rule 107) The null pointer shall not be de-referenced.
replies(3): >>46195261 #>>46196414 #>>46200255 #
1. constantcrying ◴[] No.46196414[source]
Commercial jet airliners, which in all likelihood you have flown with, have system controllers which intentionally dereference the null pointer. Yes, I have seen the code, the intention was an integrity check at startup, which computed a checksum of the memory, which included the value stored at address zero.