Rename sanity -> consistency

This commit is contained in:
Dave Bartolomeo
2020-05-11 13:46:26 -04:00
parent 06783938d3
commit 3987267f26
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ Zoom in on the code...
The pseudocode in the slide illustrates this.
The function is declared to take an array of length 12 (presumably three data points for each thruster).
However, theres no sanity checking, and a developer might call it with an array thats too short, holding direction information for only one of the thrusters.
However, theres no bounds checking, and a developer might call it with an array thats too short, holding direction information for only one of the thrusters.
The function will then read past the end of the array, and unpredictable results occur.
Write a query...