Remove low-value C semgrep rules
Removal
- c/buffer/rule-char_TCHAR.yml should be disabled
- c/buffer/rule-getchar_fgetc.yml - should be disabled (or at least check if being called in a loop)
- c/buffer/rule-getopt_getopt_long.yml - https://stackoverflow.com/questions/64305167/flawfinder-error-internal-buffer-overflows-how-to-limit-string-input-size-and should be disabled 1999 bug...
- c/misc/rule-chroot.yml - should be disabled as it does not point to any specific vulnerability. Enhancing would be extremely difficult if not impossible
- c/misc/rule-InitializeCriticalSection.yml - should be disabled, this is no longer true since XP / 2003
- c/race/rule-chgrp.yml - should be removed, AFAIK there is no such function (only a unix command line utility)
- c/input/recv_recvfrom.yml - should be disabled, this is a source not a sink