Skip to content

Commit 05d577f

Browse files
committed
Update rule package description file
1 parent fcc4fc6 commit 05d577f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"MISRA-C-2012": {
3+
"RULE-21-13": {
4+
"properties": {
5+
"obligation": "mandatory"
6+
},
7+
"queries": [
8+
{
9+
"description": "Passing arguments to <ctype.h> functions outside the range of unsigned char or EOF causes undefined behavior.",
10+
"kind": "problem",
11+
"name": "<ctype.h> function arguments shall be represented as unsigned char",
12+
"precision": "very-high",
13+
"severity": "error",
14+
"short_name": "CtypeFunctionArgNotUnsignedCharOrEof",
15+
"tags": []
16+
}
17+
],
18+
"title": "Any value passed to a function in <ctype.h> shall be representable as an unsigned char or be the value EOF"
19+
},
20+
"RULE-21-15": {
21+
"properties": {
22+
"obligation": "required"
23+
},
24+
"queries": [
25+
{
26+
"description": "Passing pointers to incompatible types as arguments to memcpy, memmove and memcmp indicates programmers' confusion.",
27+
"kind": "problem",
28+
"name": "The pointer arguments to the Standard Library functions memcpy, memmove and memcmp shall be pointers",
29+
"precision": "very-high",
30+
"severity": "error",
31+
"short_name": "MemcpyMemmoveMemcmpArgNotPointersToCompatibleTypes",
32+
"tags": []
33+
}
34+
],
35+
"title": "The pointer arguments to the Standard Library functions memcpy, memmove and memcmp shall be pointers to qualified or unqualified versions of compatible types"
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)