CON34-C
: Implementation seems to check incorrect aspects of thread storage duration objects
#801
Labels
false positive/false negative
An issue related to observed false positives or false negatives.
Standard-CERT-C
Affected rules
CON34-C
Description
The documentation seems to describe the risk of passing a
tss_t
into a thread. The risk here is that the new thread will have no value.In the "compliant" case it says the appropriate fix is to use
tss_get()
to get the value in the current thread, then pass that value into the new thread.In our implementation, we check that any
tss_t
values are definitely given a value before retrieved and passed into a thread creation statement. This is not the intention of the rule, adds additional implementation complexity, and reveals no violations in MRVA.Example
The text was updated successfully, but these errors were encountered: