abnormal termination [Open Group 08]
Abnormal termination occurs when requested by the abort()
function or when some signals are received. See also #normal termination.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="1373b4e1-1cac-4ef2-9e70-3ca42740a893"><ac:parameter ac:name=""> asynchronous-safe</ac:parameter></ac:structured-macro>
asynchronous-safe [[GNU Pth]]
A function is asynchronous-safe, or asynchronous-signal safe, if it can be called safely and without side effects from within a signal handler context. That is, it must be able to be interrupted at any point and run linearly out of sequence without causing an inconsistent state. It must also function properly when global data might itself be in an inconsistent state. Some asynchronous-safe operations are listed here:
- call the
signal()
function to reinstall a signal handler - unconditionally modify a
volatile sig_atomic_t
variable (as modification to this type is atomic) - call the
_Exit()
function to immediately terminate program execution - invoke an asynchronous-safe function, as specified by your implementation
Few functions are asynchronous-safe. If a function performs any other operations, it is probably not asynchronous-safe.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="e4e7bfab-9c63-487b-a7b0-3303e8324fdd"><ac:parameter ac:name=""> availability</ac:parameter></ac:structured-macro>
availability [[IEEE Std 610.12 1990]]
The degree to which a system or component is operational and accessible when required for use. Often expressed as a probability.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="f64712e8-82ca-40a3-b227-4896a1532a1f"><ac:parameter ac:name=""> basic exception safety</ac:parameter></ac:structured-macro>
basic exception safety [[Stroustrup 01]], [[Sutter 00]]
The basic exception safety guarantee is a property of an operation such that, if the operation terminates by raising an exception, it preserves program state invariants and prevents resource leaks. See also: exception safety, strong exception safety, no-throw guarantee.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="1c8dcc95-5ff2-42c8-837d-7eaee7754ab4"><ac:parameter ac:name=""> conforming program</ac:parameter></ac:structured-macro>
conforming [[ISO/IEC 9899-1999]]
Conforming programs may depend upon nonportable features of a conforming implementation.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="906f9d7b-fa52-47df-a1f4-4726906ad49a"><ac:parameter ac:name=""> data race</ac:parameter></ac:structured-macro>
data race [ISO/IEC Document Number N3000 – Working Draft, Standard for Programming Language C++, November 2009]
The execution of a program contains a data race if it contains two conflicting actions in different threads, at least one of which is not atomic, and neither happens before the other. Any such data race results in undefined behavior.
denial-of-service attack
An attempt to make a computer resource unavailable to its intended users.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="57378409-b3fa-4bff-9865-14777d5a5f89"><ac:parameter ac:name=""> error tolerance</ac:parameter></ac:structured-macro>
error tolerance [[IEEE Std 610.12 1990]]
The ability of a system or component to continue normal operation despite the presence of erroneous inputs.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="36c5b23c-ae3a-491c-8baf-39186db9b7ef"><ac:parameter ac:name=""> exception safety</ac:parameter></ac:structured-macro>
exception safety [[Stroustrup 01]]
An operation on an object is said to be exception safe if that operation leaves the object in a valid state when the operation is terminated by throwing an exception. See also: basic exception safety, strong exception safety, no-throw guarantee.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="fc936802-b3f3-4948-81ba-e793e19d4075"><ac:parameter ac:name=""> exploit</ac:parameter></ac:structured-macro>
exploit [[Seacord 05a]]
An exploit is a piece of software or technique that takes advantage of a security vulnerability to violate an explicit or implicit security policy.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="92bddca6-68bb-47f7-a48d-aab31d93dcac"><ac:parameter ac:name=""> fail safe</ac:parameter></ac:structured-macro>
fail safe [[IEEE Std 610.12 1990]]
Pertaining to a system or component that automatically places itself in a safe operating mode in the event of a failure; for example, a traffic light that reverts to blinking red in all directions when normal operation fails.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="bd772639-b8f8-490a-9371-3d241bdcbd87"><ac:parameter ac:name=""> fail soft</ac:parameter></ac:structured-macro>
fail soft [[IEEE Std 610.12 1990]]
Pertaining to a system or component that continues to provide partial operational capability in the event of certain failures; for example, a traffic light that continues to alternate between red and green if the yellow light fails.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="d048a351-3398-47c1-a994-42fdbbea2e4e"><ac:parameter ac:name=""> fault tolerance</ac:parameter></ac:structured-macro>
fault tolerance [[IEEE Std 610.12 1990]]
The ability of a system or component to continue normal operation despite the presence of hardware or software faults.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="7ecd68e1-c48b-4306-9b46-59ac898ed216"><ac:parameter ac:name=""> free store</ac:parameter></ac:structured-macro>
free store [[ISO/IEC 14882-2003]]
Storage managed by the C++ allocation and deallocation functions ::operator new(std::size_t)
, ::operator delete(void*)
, their array forms ::operator new[](std::size_t)
, ::operator delete[](void*)
, overloads of said functions on std::nothrow_t
, any user-defined replacements for said functions, as well as any such functions defined as a member of a class. Storage in the free store is distinct from storage managed by the C functions calloc
, free
, malloc
, and realloc
.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="a458cf5b-bef9-402b-a707-59bfc2b9f4c4"><ac:parameter ac:name=""> freestanding environment</ac:parameter></ac:structured-macro> <ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="cc94e941-b0a7-4be3-9b83-7d0f705613b2"><ac:parameter ac:name=""> freestanding implementation</ac:parameter></ac:structured-macro>
freestanding implementation [[ISO/IEC 14882-2003]]
A freestanding implementation is one in which execution may take place without the benefit of an operating system, and has an implementation-defined set of libraries that includes certain language-support libraries. Also referred to as freestanding environment.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="df9913f7-3353-456b-91e4-507983872bfd"><ac:parameter ac:name=""> function-like macro</ac:parameter></ac:structured-macro>
function-like macro [[ISO/IEC 9899-1999]]
A #define
preprocessing directive that defines an identifier immediately followed by zero or more parameters, the ellipsis (...
), or a combination of the two, enclosed in parentheses, similar syntactically to a function call. Subsequent instances of the macro name followed by a parenthesized list of arguments in a translation unit are replaced by the replacement list of preprocessing tokens that constitute the remainder of the directive. See also object-like macro and unsafe function-like macro.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="07acc102-3e82-4a7e-8513-ec4f62f25183"><ac:parameter ac:name=""> hosted environment</ac:parameter></ac:structured-macro> <ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="6a833619-02aa-4f86-b924-90369819de98"><ac:parameter ac:name=""> hosted implementation</ac:parameter></ac:structured-macro>
hosted implementation [[ISO/IEC 14882-2003]]
An implementation that is not freestanding. Program startup occurs at main()
, complex types are implemented, and all C++ standard library facilities are available. Also referred to as hosted environment.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="59f5ec86-97fa-470c-a7eb-9c262dff9e87"><ac:parameter ac:name="">ill-formed</ac:parameter></ac:structured-macro> <ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="8d8826c2-8d4c-449f-a4f5-f0ed6df56cc9"><ac:parameter ac:name="">ill-formed program</ac:parameter></ac:structured-macro>
ill-formed program [[ISO/IEC 14882-2003]]
A C++ program that is not well-formed, that is a program not constructed according to the syntax rules, diagnosable semantic rules, and the One Definition Rule.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="f820bd24-3b26-467e-a142-467094fd2dd8"><ac:parameter ac:name=""> implementation</ac:parameter></ac:structured-macro>
implementation [[ISO/IEC 9899-1999]]
Particular set of software, running in a particular translation environment under particular control options, that performs translation of programs for, and supports execution of functions in, a particular execution environment.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="df9cbcc5-dc39-4799-b27a-230ccc2dda7e"><ac:parameter ac:name=""> implementation-defined behavior</ac:parameter></ac:structured-macro>
implementation-defined behavior [[ISO/IEC 14882-2003]]
Behavior, for a well-formed program construct and correct data, that depends on the implementation and that each implementation shall document.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="d3910c2e-e5e5-4c2e-b0b7-c8d38d269cee"><ac:parameter ac:name=""> incomplete type</ac:parameter></ac:structured-macro>
incomplete type [[ISO/IEC 14882-2003]]
A type that describes objects but lacks information needed to determine their sizes.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="1a89903f-37a7-47a7-8423-f052456e29a5"><ac:parameter ac:name=""> indeterminate value</ac:parameter></ac:structured-macro>
indeterminate value [[ISO/IEC 9899-1999]]
Either an unspecified value or a trap representation.
invalid pointer
A pointer that is not a #valid pointer.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="31788bce-60cc-4352-aa37-94a626403a58"><ac:parameter ac:name=""> locale-specific behavior</ac:parameter></ac:structured-macro>
locale-specific behavior [[ISO/IEC 14882-2003]]
Behavior that depends on local conventions of nationality, culture, and language that each implementation documents.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="4038168f-0ccb-4344-88f1-a91fd4bc8895"><ac:parameter ac:name=""> lvalue</ac:parameter></ac:structured-macro>
lvalue [[ISO/IEC 9899-1999]]
An lvalue is an expression with an object type or an incomplete type other than void
. The name "lvalue" comes originally from the assignment expression E1 = E2
, in which the left operand E1
is required to be a (modifiable) lvalue. It is perhaps better considered as representing an object "locator value".
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="e5239759-e53a-475c-b1ef-3ca205655f34"><ac:parameter ac:name=""> mitigation</ac:parameter></ac:structured-macro>
mitigation [[Seacord 05a]]
Mitigations are methods, techniques, processes, tools, or runtime libraries that can prevent or limit exploits against vulnerabilities.
normal termination [Open Group 08]
Normal termination occurs by a return from main()
, when requested with the exit()
, _exit()
, or _Exit()
functions; or when the last thread in the process terminates by returning from its start function, by calling the pthread_exit()
function, or through cancellation. See also #abnormal termination.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="3346b50e-62ed-4192-a643-41929acce043"><ac:parameter ac:name=""> no-throw guarantee</ac:parameter></ac:structured-macro>
no-throw guarantee [[Sutter 00]]
The no-throw guarantee is a property of an operation such that it is guaranteed to complete successfully without raising or propagating an exception. See also: exception safety, basic exception safety, strong exception safety.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="e2a18577-ecdf-4cce-b496-b64c11f9ca3c"><ac:parameter ac:name=""> object-like macro</ac:parameter></ac:structured-macro>
object-like macro [[ISO/IEC 9899-1999]]
A #define
preprocessing directive that defines an identifier with no parentheses. Subsequent instances of the macro name in a translation unit are replaced by the replacement list of preprocessing tokens that constitute the remainder of the directive. See also function-like macro.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="5cb4a29b-6285-453f-98cd-b6424e30c3f0"><ac:parameter ac:name="">one definition rule</ac:parameter></ac:structured-macro> <ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="7eeaec30-8406-40d1-8599-6b1a3ba0e16b"><ac:parameter ac:name="">odr</ac:parameter></ac:structured-macro>
one definition rule (ODR) [[ISO/IEC 14882-2003]]
A fundamental C++ rule that states that no translation unit shall contain more than one definition of any variable, function, class type, enumeration type or template.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="df2e0e09-f3ca-4212-aa1d-0665ce524390"><ac:parameter ac:name=""> reentrant</ac:parameter></ac:structured-macro>
reentrant [[Dowd 06]]
A function is reentrant if multiple instances of the same function can run in the same address space concurrently without creating the potential for inconsistent states.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="77cd59a7-db91-40fa-bbbc-1730c2172153"><ac:parameter ac:name=""> reliability</ac:parameter></ac:structured-macro>
reliability [[IEEE Std 610.12 1990]]
The ability of a system or component to perform its required functions under stated conditions for a specified period of time.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="cf485238-213a-4eb0-a3a0-07757f1f656c"><ac:parameter ac:name=""> robustness</ac:parameter></ac:structured-macro>
robustness [[IEEE Std 610.12 1990]]
The degree to which a system or component can function correctly in the presence of invalid inputs or stressful environmental conditions.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="dbb68129-f30b-4efb-a545-399334d76822"><ac:parameter ac:name=""> rvalue</ac:parameter></ac:structured-macro>
rvalue [[ISO/IEC 9899-1999]]
Value of an expression.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="5745bef8-c7e8-4d2f-86a3-2c678b61ad25"><ac:parameter ac:name=""> security flaw</ac:parameter></ac:structured-macro>
security flaw [[Seacord 05a]]
A security flaw is a software defect that poses a potential security risk.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="bf7b3332-c83b-4570-9c49-a2426fb43300"><ac:parameter ac:name=""> security policy</ac:parameter></ac:structured-macro>
security policy [[Internet Society 00]]
A set of rules and practices that specify or regulate how a system or organization provides security services to protect sensitive and critical system resources.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="b7ec7d2b-fc62-4fdc-9ae5-bc07129df742"><ac:parameter ac:name=""> sequence point</ac:parameter></ac:structured-macro>
sequence point C99 [[ISO/IEC 9899-1999]]
Evaluation of an expression may produce side effects. At specific points in the execution sequence called sequence points, all side effects of previous evaluations have completed, and no side effects of subsequent evaluations have yet taken place.
The following sequence points are defined by C99 [[ISO/IEC 9899-1999]]:
- the call to a function, after the arguments have been evaluated
- the end of the first operand of the following operators: && (logical AND); || (logical OR); ? (conditional); , (comma operator)
- the end of a full declarator
- the end of a full expression: an initializer; the expression in an expression statement (that is, at the semicolon); the controlling expression of a selection statement (if or switch); the controlling expression of a while or do statement; each of the expressions of a for statement; the expression in a return statement
- immediately before a function returns
- after the actions associated with each formatted input/output function conversion specifier
- immediately before and immediately after each call to a comparison function, by a standard searching or sorting function, and between any call to a comparison function and any movement of the objects passed as arguments to that call
Note that not all instances of a comma in C code denote a usage of the comma operator. For example, the comma between arguments in a function call is not a sequence point.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="97c75b48-34c0-4ce4-8b94-c1d076e2f5c1"><ac:parameter ac:name=""> strictly conforming</ac:parameter></ac:structured-macro>
strictly conforming [[ISO/IEC 9899-1999]]
A strictly conforming program is one that uses only those features of the language and library specified in the international standard. Strictly conforming programs are intended to be maximally portable among conforming implementations and can't, for example, depend upon implementation-defined behavior.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="3ab2b68d-97e3-4134-8293-4b5dc2d5bf79"><ac:parameter ac:name=""> strong exception safety</ac:parameter></ac:structured-macro>
strong exception safety [[Stroustrup 01]], [[Sutter 00]]
The strong exception safety guarantee is a property of an operation such that, in addition to satisfying the basic exception safety guarantee, if the operation terminates by raising an exception it has no observable effects on program state. See also: exception safety, basic exception safety, no-throw guarantee.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="1cafb22c-9765-4270-b36b-4cefdd0e781a"><ac:parameter ac:name="">trap representation</ac:parameter></ac:structured-macro>
trap representation [[ISO/IEC 9899-1999]]
Object representation that does not represent a value of the object type. Attempting to read the value of an object that has a trap representation other than by an expression that has a character type is undefined . Producing such a representation by a side effect that modifies all or any part of the object other than by an expression that has a character type is undefined.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="b6cc8578-16ea-467c-b5d8-a7c4090b31ae"><ac:parameter ac:name=""> undefined behavior</ac:parameter></ac:structured-macro>
undefined behavior [[ISO/IEC 14882-2003]]
Behavior, such as might arise upon use of an erroneous program construct or erroneous data, for which the C++ Standard imposes no requirements. Undefined behavior may also be expected when the C++ Standard omits the description of any explicit definition of behavior.
unsafe function-like macro
A #function-like macro whose expansion causes one or more of its arguments not to be evaluated exactly once.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="8bc10823-da40-40ee-bee9-5a6d8e17540f"><ac:parameter ac:name=""> unspecified behavior</ac:parameter></ac:structured-macro>
unspecified behavior [[ISO/IEC 14882-2003]]
Behavior, for a well-formed program construct and correct data, that depends on the implementation. The implementation is not required to document which behavior occurs.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="bdb2e5dd-4ad5-4343-b9c6-fbbcd29068fb"><ac:parameter ac:name=""> unspecified value</ac:parameter></ac:structured-macro>
unspecified value [[ISO/IEC 9899-1999]]
A valid value of the relevant type where the C++ Standard imposes no requirements on which value is chosen in any instance. An unspecified value cannot be a trap representation.
valid pointer
A pointer that refers to an element within an array or one past the last element of an array. For the purposes of this definition, a pointer to an object that is not an element of an array behaves the same as a pointer to the first element of an array of length one with the type of the object as its element type. (Cf 6.5.8p3)
For the purposes of this definition, an object can be considered to be an array of a certain number of bytes; that number is the size of the object, as produced by the sizeof
operator.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="af1dbb77-db40-45bc-b040-83c63becc74f"><ac:parameter ac:name=""> validation</ac:parameter></ac:structured-macro>
validation [[IEC 61508-4]]
Confirmation by examination and provision of objective evidence that the particular requirements for a specific intended use are fulfilled.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="8018ae28-280e-4114-8841-65c8ca8f6bdb"><ac:parameter ac:name=""> verification</ac:parameter></ac:structured-macro>
verification [[IEC 61508-4]]
Confirmation by examination and provision of objective evidence that the requirements have been fulfilled.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="6d30c6d4-0a23-415c-ab76-e9a71c5856ae"><ac:parameter ac:name=""> vulnerability</ac:parameter></ac:structured-macro>
vulnerability [[Seacord 05a]]
A vulnerability is a set of conditions that allows an attacker to violate an explicit or implicit security policy.
<ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="c79f4976-fd62-4f00-843d-f67b3336d575"><ac:parameter ac:name="">well-formed</ac:parameter></ac:structured-macro> <ac:structured-macro ac:name="anchor" ac:schema-version="1" ac:macro-id="c7919d75-c1c1-4fd3-bc54-050beb7a2bd2"><ac:parameter ac:name="">well-formed program</ac:parameter></ac:structured-macro>
well-formed program [[ISO/IEC 14882-2003]]
A C++ program constructed according to the syntax rules, diagnosable semantic rules, and the One Definition Rule. See also ill-formed program.