Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

42 lines
1.1 KiB
Plaintext

== Why is this an issue?
This includes file and I/O functions ``++fgetpos++``, ``++fopen++``, ``++ftell++``, ``++gets++``, ``++perror++``, ``++remove++``, ``++rename++``, etc.
Streams and file I/O have a large number of unspecified, undefined and implementation-defined behaviors associated with them.
=== Noncompliant code example
[source,cpp]
----
#include <cstdio> /* Noncompliant */
void fn()
{
char_t array[10];
gets(array); /* Can lead to buffer over-run */
}
----
== Resources
* MISRA {cpp}:2008, 27-0-1 - The stream input/output library _<cstdio>_ shall not be used.
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
=== relates to: S988
=== on 31 Mar 2015, 19:03:32 Evgeny Mandrikov wrote:
\[~ann.campbell.2] implementation seems more complete (SQALE, description) than this spec.
=== on 13 Apr 2015, 19:45:05 Evgeny Mandrikov wrote:
\[~ann.campbell.2] I'm wondering why blocker, but not active by default? Note that in implementation currently major and not active.
endif::env-github,rspecator-view[]