document Addition of data-structure sentinel

Overview The accidental addition of a data-structure sentinel can cause serious programming logic problems. Consequences Availability:...

document Assigning instead of comparing

Overview In many languages the compare statement is very close in appearance to the assignment statement and are often confused. Consequences ...

document Comparing instead of assigning

Overview In many languages, the compare statement is very close in appearance to the assignment statement; they are often confused. Consequences...

document Deletion of data-structure sentinel

Overview The accidental deletion of a data structure sentinel can cause serious programing logic problems. Consequences Availability:...

document Duplicate key in associative list (alist)

Overview Associative lists should always have unique keys, since having non-unique keys can often be mistaken for an error. Consequences ...

document Failure to check whether privileges were dropped successfully

Overview If one changes security privileges, one should ensure that the change was successful. Consequences Authorization: If privileges...

 document Failure to deallocate data

Overview If memory is allocated and not freed the process could continue to consume more and more memory and eventually crash. Consequences ...

 document Failure to provide confidentiality for stored data

Overview Non-final public fields should be avoided, if possible, as the code is easily tamperable. Consequences Integrity: The object...

 document Improper cleanup on thrown exception

Overview Causing a change in flow, due to an exception, can often leave the code in a bad state. Consequences Implementation: The code...

document Improper error handling

Overview Sometimes an error is detected, and bad or no action is taken. Consequences Undefined. Exposure period Implementation: This is...

document Improper temp file opening

Overview Tempfile creation should be done in a safe way. To be safe, the temp file function should open up the temp file with appropriate access...

 document Incorrect block delimitation

Overview In some languages, forgetting to explicitly delimit a block can result in a logic error that can, in turn, have security...

 document Misinterpreted function return value

Overview If a function's return value is not properly checked, the function could have failed without proper acknowledgement. Consequenc es ...

document Missing parameter

Overview If too few arguments are sent to a function, the function will still pop the expected number of arguments from the stack. Potentially, a...

 document Omitted break statement

Overview Omitting a break statement so that one may fall through is often indistinguishable from an error, and therefore should not be...

 document Passing mutable objects to an untrusted method

Overview Sending non-cloned mutable data as an argument may result in that data being altered or deleted by the called function, thereby putting...

 document Truncation error

Overview Truncation errors occur when a primitive is cast to a primitive of a smaller size and data is lost in the conversion. Consequences ...

 document Undefined Behavior

Abstract The behavior of this function is undefined unless its control parameter is set to a specific value. Description The Linux Standard...

document Uninitialized variable

Overview Using the value of an unitialized variable is not safe. Consequences Integrity: Initial variables usually contain junk, which...

document Unintentional pointer scaling

Overview In C and C++, one may often accidentally refer to the wrong memory due to the semantics of when math operations are implicitly...

document Use of sizeof() on a pointer type

Overview Running sizeof() on a malloced pointer type will always return the wordsize/8. Consequences Authorization: This error can often...

 document Using the wrong operator

Overview This is a common error given when an operator is used which does not make sense for the context appears. Consequences ...