add cpp-linter to workflow #7
Annotations
10 warnings and 5 notices
shield_purge.c:307:5 [clang-analyzer-deadcode.DeadStores]:
shield_purge.c#L307
Value stored to 'key' is never read
|
pam_shield_lib.c:72:2 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]:
pam_shield_lib.c#L72
Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
|
pam_shield_lib.c:176:2 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]:
pam_shield_lib.c#L176
Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
|
pam_shield_lib.c:177:2 [clang-analyzer-security.insecureAPI.strcpy]:
pam_shield_lib.c#L177
Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
|
pam_shield_lib.c:293:3 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]:
pam_shield_lib.c#L293
Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11
|
pam_shield_lib.c:359:2 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]:
pam_shield_lib.c#L359
Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
|
pam_shield_lib.c:409:4 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]:
pam_shield_lib.c#L409
Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
|
pam_shield_lib.c:438:4 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]:
pam_shield_lib.c#L438
Call to function 'memset' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memset_s' in case of C11
|
pam_shield_lib.c:668:3 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]:
pam_shield_lib.c#L668
Call to function 'strncpy' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'strncpy_s' in case of C11
|
pam_shield_lib.c:721:10 [clang-analyzer-deadcode.DeadStores]:
pam_shield_lib.c#L721
Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err'
|
Run clang-format on shield_purge.c:
shield_purge.c#L1
File shield_purge.c does not conform to Custom style guidelines. (lines 1, 25, 28, 31, 32, 34, 35, 37, 38, 39, 41, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 61, 62, 63, 64, 65, 66, 67, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 85, 86, 87, 88, 89, 91, 92, 93, 94, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 107, 108, 109, 110, 112, 113, 114, 115, 117, 118, 119, 120, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 134, 135, 136, 137, 139, 140, 141, 142, 146, 149, 150, 151, 152, 154, 156, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 177, 178, 181, 182, 183, 185, 187, 188, 189, 190, 192, 194, 195, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 212, 215, 216, 217, 218, 220, 222, 223, 224, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 267, 270, 271, 272, 273, 274, 276, 278, 279, 280, 282, 283, 284, 285, 286, 287, 288, 289, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 313, 317, 318, 319, 321, 322, 324, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 337, 339)
|
Run clang-format on pam_shield_lib.c:
pam_shield_lib.c#L1
File pam_shield_lib.c does not conform to Custom style guidelines. (lines 1, 23, 63, 66, 67, 69, 70, 72, 76, 77, 79, 80, 81, 82, 86, 87, 88, 90, 91, 93, 94, 95, 96, 97, 98, 99, 100, 102, 103, 104, 105, 106, 107, 108, 112, 113, 116, 117, 118, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 140, 141, 142, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 155, 156, 157, 158, 159, 160, 164, 167, 168, 170, 171, 173, 174, 176, 177, 181, 182, 184, 185, 186, 187, 191, 192, 193, 195, 197, 199, 200, 201, 202, 203, 204, 205, 207, 210, 211, 214, 215, 217, 218, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 234, 237, 240, 241, 243, 244, 245, 247, 248, 249, 250, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 270, 271, 273, 277, 280, 281, 282, 284, 285, 287, 289, 290, 291, 293, 294, 295, 296, 298, 301, 302, 303, 304, 305, 306, 307, 308, 310, 311, 314, 315, 316, 318, 319, 321, 322, 323, 325, 326, 328, 329, 331, 332, 334, 335, 337, 338, 340, 341, 342, 343, 347, 349, 350, 353, 354, 356, 357, 359, 361, 362, 364, 365, 367, 368, 370, 371, 373, 374, 376, 380, 381, 384, 385, 386, 387, 388, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 471, 472, 473, 474, 475, 476, 477, 478, 479, 483, 486, 487, 488, 489, 490, 491, 493, 495, 496, 497, 498, 499, 500, 502, 503, 505, 506, 507, 509, 511, 512, 513, 515, 516, 517, 518, 519, 520, 521, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 536, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 649, 654, 655, 658, 659, 660, 662, 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 676, 677, 678, 682, 685, 686, 687, 689, 690, 692, 693, 695, 697, 698, 700, 701, 702, 703, 704, 705, 706, 708, 709, 710, 711, 713, 715, 716, 717, 718, 719, 721, 723, 724, 725, 729, 730, 731, 733, 734, 736, 737, 738, 739, 740, 741, 742, 743, 744, 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 755, 756, 757, 758, 759, 760, 761, 763, 766, 769, 770, 772, 773, 774)
|
Run clang-format on pam_shield.c:
pam_shield.c#L1
File pam_shield.c does not conform to Custom style guidelines. (lines 1, 22, 23, 24, 25, 27, 29, 30, 33, 39, 47, 48, 50, 53, 55, 57, 59, 60, 61, 66, 69, 70, 72, 73, 74, 75, 76, 77, 78, 79, 81, 82, 83, 84, 85, 89, 90, 91, 93, 94, 95, 96, 97, 99, 100, 101, 102, 103, 104, 108, 109, 113, 115, 118, 119, 120, 122, 123, 124, 126, 127, 128, 129, 135, 136, 139, 140, 141, 142, 143, 145, 146, 148, 150, 151, 152, 153, 154, 155, 157, 158, 159, 161, 162, 164, 166, 167, 168, 169, 170, 171, 173, 174, 175, 177, 178, 180, 182, 183, 184, 185, 186, 187, 188, 189, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 235, 236, 237, 238, 239, 240, 242, 243, 245, 246, 247, 248, 249, 250, 252, 253, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 290, 291, 292, 293, 294, 296, 297, 298, 299, 300, 301, 302, 304, 305, 306, 307, 308, 309, 310, 311, 312, 314, 315, 316, 317, 318, 320, 321, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 336, 338, 339, 340, 341, 342, 343, 344, 345, 346, 348, 350, 351, 352, 353, 354, 355, 356, 357, 359, 363)
|
Run clang-format on pam_shield.h:
pam_shield.h#L1
File pam_shield.h does not conform to Custom style guidelines. (lines 1, 6, 10, 11, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 28, 29, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 53, 54, 59)
|
Run clang-format on pam_shield_lib.h:
pam_shield_lib.h#L1
File pam_shield_lib.h does not conform to Custom style guidelines. (lines 1, 23, 47, 48, 49, 51, 53, 54, 55, 56, 57, 58, 59, 60, 61, 90, 91, 98, 107, 108, 111, 114, 121, 126, 127, 128, 129, 130, 131, 132, 133, 135, 136, 141, 143, 144, 149, 150, 155, 160, 161, 166, 173)
|