Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_bios.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_common.h
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_g450pll.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_merge.h
Examining data/xserver-xorg-video-mga-2.0.0/src/mgareg_flags.h
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_sarea.h
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_dac3026.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_arc.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_hwcurs.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_dripriv.h
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_dri.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_dga.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_video.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_dri.h
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_vga.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_merge.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_exa.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_dh.c
Examining data/xserver-xorg-video-mga-2.0.0/src/compat-api.h
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_shadow.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_maven.h
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_reg.h
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_macros.h
Examining data/xserver-xorg-video-mga-2.0.0/src/mga.h
Examining data/xserver-xorg-video-mga-2.0.0/src/mga_storm.c
Examining data/xserver-xorg-video-mga-2.0.0/util/stormdwg.c

FINAL RESULTS:

data/xserver-xorg-video-mga-2.0.0/src/mga.h:403:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    struct mga_VCO   system;    /**< System VCO. */
data/xserver-xorg-video-mga-2.0.0/src/mga_bios.c:153:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	bios->system.max_freq = maxdac;
data/xserver-xorg-video-mga-2.0.0/src/mga_bios.c:176:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	bios->system.max_freq = maxdac;
data/xserver-xorg-video-mga-2.0.0/src/mga_bios.c:197:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	bios->system.max_freq = maxdac;
data/xserver-xorg-video-mga-2.0.0/src/mga_bios.c:203:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	bios->system.max_freq = maxdac;
data/xserver-xorg-video-mga-2.0.0/src/mga_bios.c:235:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	bios->system.max_freq = maxdac;
data/xserver-xorg-video-mga-2.0.0/src/mga_bios.c:242:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	bios->system.max_freq = maxdac;
data/xserver-xorg-video-mga-2.0.0/src/mga_bios.c:257:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	bios->system.min_freq = mindac;
data/xserver-xorg-video-mga-2.0.0/src/mga_bios.c:264:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	bios->system.min_freq = mindac;
data/xserver-xorg-video-mga-2.0.0/src/mga_bios.c:445:20:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	       pMga->bios.system.min_freq, pMga->bios.system.max_freq);
data/xserver-xorg-video-mga-2.0.0/src/mga_bios.c:445:48:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	       pMga->bios.system.min_freq, pMga->bios.system.max_freq);
data/xserver-xorg-video-mga-2.0.0/src/mga.h:214:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	ExtVga[6];
data/xserver-xorg-video-mga-2.0.0/src/mga.h:215:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char 	DacClk[6];
data/xserver-xorg-video-mga-2.0.0/src/mga.h:220:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char	dac2[0x21];
data/xserver-xorg-video-mga-2.0.0/src/mga_bios.c:306:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char * const host_interface_strings[8] = {
data/xserver-xorg-video-mga-2.0.0/src/mga_bios.c:325:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void) memcpy(& pMga->bios, & pMga->chip_attribs->default_bios_values,
data/xserver-xorg-video-mga-2.0.0/src/mga_dac3026.c:103:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const static unsigned char MGADACbpp8[DACREGSIZE] = {
data/xserver-xorg-video-mga-2.0.0/src/mga_dac3026.c:108:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const static unsigned char MGADACbpp16[DACREGSIZE] = {
data/xserver-xorg-video-mga-2.0.0/src/mga_dac3026.c:124:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const static unsigned char MGADACbpp24[DACREGSIZE] = {
data/xserver-xorg-video-mga-2.0.0/src/mga_dac3026.c:129:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const static unsigned char MGADACbpp32[DACREGSIZE] = {
data/xserver-xorg-video-mga-2.0.0/src/mga_dga.c:289:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char DAC[256*3];
data/xserver-xorg-video-mga-2.0.0/src/mga_dga.c:316:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&pMga->CurrentLayout, &SavedLayouts[index], sizeof(MGAFBLayout));
data/xserver-xorg-video-mga-2.0.0/src/mga_dga.c:324:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&SavedLayouts[index], &pMga->CurrentLayout, sizeof(MGAFBLayout));
data/xserver-xorg-video-mga-2.0.0/src/mga_dri.c:924:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf( pDRIInfo->busIdString, "PCI:%d:%d:%d",
data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c:1705:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pMga->Options, MGAOptions, sizeof(MGAOptions));
data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c:2387:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(linePitches, Pitches1, sizeof(Pitches1));
data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c:2396:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(linePitches, Pitches2, sizeof(Pitches2));
data/xserver-xorg-video-mga-2.0.0/src/mga_merge.c:72:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(mode,i, sizeof(DisplayModeRec));
data/xserver-xorg-video-mga-2.0.0/src/mga_merge.c:136:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char modename[256];
data/xserver-xorg-video-mga-2.0.0/src/mga_merge.c:241:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pScrn,pScrn1,sizeof(ScrnInfoRec));
data/xserver-xorg-video-mga-2.0.0/src/mga_merge.c:273:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(pScrn->monitor,pScrn1->monitor,sizeof(MonRec));
data/xserver-xorg-video-mga-2.0.0/src/mga_merge.c:488:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(linePitches, Pitches1, sizeof(Pitches1));
data/xserver-xorg-video-mga-2.0.0/src/mga_merge.c:497:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(linePitches, Pitches2, sizeof(Pitches2));
data/xserver-xorg-video-mga-2.0.0/src/mga_shadow.c:38:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(dst, src, width);
data/xserver-xorg-video-mga-2.0.0/src/mga_storm.c:410:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, alphaPtr, width);
data/xserver-xorg-video-mga-2.0.0/src/mga_storm.c:510:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(dst, texPtr, width << 2);
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:135:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(newAdaptors, adaptors, num_adaptors * 
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:498:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, src, w);
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1543:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sbuf[255];
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1545:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sbuf,"---- PBOX: x1=%d y1=%d w=%d h=%d (x2=%d y2=%d)\n",
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1550:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sbuf,"in src: src_x=%d src_y=%d src_w=%d src_h=%d\n",
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1553:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sbuf,"in drw: drw_x=%d drw_y=%d drw_w=%d drw_h=%d\n",
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1599:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sbuf[255];
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1601:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sbuf,"---- xds = %d\n",
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1608:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sbuf,"out src: src_x=%d src_y=%d src_w=%d src_h=%d\n",
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1611:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sbuf,"out drw: drw_x=%d drw_y=%d drw_w=%d drw_h=%d\n",
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1698:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(fb_ptr, tbuf+src_x*2, src_w*2);
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1791:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		    sprintf(sbuf,"dup line: scr_src %d   scr_dst %d\n",
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1830:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sbuf[255];
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1832:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sbuf,"---- PBOX: x1=%d y1=%d w=%d h=%d (x2=%d y2=%d)\n",
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1837:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sbuf,"in src: src_x=%d src_y=%d src_w=%d src_h=%d\n",
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1840:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sbuf,"in drw: drw_x=%d drw_y=%d drw_w=%d drw_h=%d\n",
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1887:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sbuf,"out src: src_x=%d src_y=%d src_w=%d src_h=%d\n",
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1890:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(sbuf,"out drw: drw_x=%d drw_y=%d drw_w=%d drw_h=%d\n",
data/xserver-xorg-video-mga-2.0.0/src/mga_video.c:1954:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(fb_ptr, buf+src_x*2, src_w*2);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:452:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(50);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:459:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(500);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:524:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(500);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:535:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(50);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:543:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(50);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:551:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(500);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:593:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(5);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:704:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(500);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:712:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(50);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:746:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(1000);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:759:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(1000);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:783:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(10);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:790:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(10);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:829:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(500);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:837:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(500);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:875:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(5);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:1664:15:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
              usleep(500);
data/xserver-xorg-video-mga-2.0.0/src/mga_dacG.c:2094:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(4);
data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c:1031:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(200);
data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c:1036:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(10);
data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c:1043:6:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	    usleep(1000);
data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c:1161:6:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	    usleep(20000);
data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c:1229:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(8);
data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c:1259:6:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	    usleep(4);  /* twart write combination */
data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c:1279:6:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	    usleep(20000);
data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c:2942:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(1000); /* wait 1ms */
data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c:4019:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(20000);
data/xserver-xorg-video-mga-2.0.0/src/mga_driver.c:4221:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(10);
data/xserver-xorg-video-mga-2.0.0/src/mga_merge.c:152:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(modename,strmode,str - strmode);
data/xserver-xorg-video-mga-2.0.0/src/mga_merge.c:179:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                strncpy(modename,strmode,tmps - strmode);
data/xserver-xorg-video-mga-2.0.0/src/mga_vga.c:67:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(20000);
data/xserver-xorg-video-mga-2.0.0/src/mga_vga.c:131:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(20000);
data/xserver-xorg-video-mga-2.0.0/src/mga_vga.c:184:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(20000);
data/xserver-xorg-video-mga-2.0.0/src/mga_vga.c:238:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(20000);
data/xserver-xorg-video-mga-2.0.0/src/mga_vga.c:266:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(20000);
data/xserver-xorg-video-mga-2.0.0/src/mga_vga.c:275:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(20000);
data/xserver-xorg-video-mga-2.0.0/src/mga_vga.c:294:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(20000);
data/xserver-xorg-video-mga-2.0.0/src/mga_vga.c:359:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(20000);
data/xserver-xorg-video-mga-2.0.0/src/mga_vga.c:371:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(20000);

ANALYSIS SUMMARY:

Hits = 94
Lines analyzed = 21674 in approximately 0.48 seconds (44746 lines/second)
Physical Source Lines of Code (SLOC) = 15952
Hits@level = [0]  25 [1]  39 [2]  44 [3]   0 [4]  11 [5]   0
Hits@level+ = [0+] 119 [1+]  94 [2+]  55 [3+]  11 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 7.45988 [1+] 5.89268 [2+] 3.44784 [3+] 0.689569 [4+] 0.689569 [5+]   0
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.