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/weightwatcher-1.12+dfsg/src/field.c Examining data/weightwatcher-1.12+dfsg/src/main.c Examining data/weightwatcher-1.12+dfsg/src/makeit.c Examining data/weightwatcher-1.12+dfsg/src/prefs.c Examining data/weightwatcher-1.12+dfsg/src/readimage.c Examining data/weightwatcher-1.12+dfsg/src/vector.c Examining data/weightwatcher-1.12+dfsg/src/field.h Examining data/weightwatcher-1.12+dfsg/src/globals.h Examining data/weightwatcher-1.12+dfsg/src/key.h Examining data/weightwatcher-1.12+dfsg/src/prefs.h Examining data/weightwatcher-1.12+dfsg/src/preflist.h Examining data/weightwatcher-1.12+dfsg/src/readimage.h Examining data/weightwatcher-1.12+dfsg/src/types.h Examining data/weightwatcher-1.12+dfsg/src/vector.h Examining data/weightwatcher-1.12+dfsg/src/fitswcs.c Examining data/weightwatcher-1.12+dfsg/src/fitswcs.h Examining data/weightwatcher-1.12+dfsg/src/wcscelsys.h Examining data/weightwatcher-1.12+dfsg/src/xml.h Examining data/weightwatcher-1.12+dfsg/src/fits/fitsbody.c Examining data/weightwatcher-1.12+dfsg/src/fits/fitscat.c Examining data/weightwatcher-1.12+dfsg/src/fits/fitscheck.c Examining data/weightwatcher-1.12+dfsg/src/fits/fitscleanup.c Examining data/weightwatcher-1.12+dfsg/src/fits/fitsconv.c Examining data/weightwatcher-1.12+dfsg/src/fits/fitshead.c Examining data/weightwatcher-1.12+dfsg/src/fits/fitskey.c Examining data/weightwatcher-1.12+dfsg/src/fits/fitsmisc.c Examining data/weightwatcher-1.12+dfsg/src/fits/fitsread.c Examining data/weightwatcher-1.12+dfsg/src/fits/fitstab.c Examining data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c Examining data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c Examining data/weightwatcher-1.12+dfsg/src/fits/fitscat_defs.h Examining data/weightwatcher-1.12+dfsg/src/fits/fitscat.h Examining data/weightwatcher-1.12+dfsg/src/wcs/cel.c Examining data/weightwatcher-1.12+dfsg/src/wcs/lin.c Examining data/weightwatcher-1.12+dfsg/src/wcs/poly.c Examining data/weightwatcher-1.12+dfsg/src/wcs/proj.c Examining data/weightwatcher-1.12+dfsg/src/wcs/sph.c Examining data/weightwatcher-1.12+dfsg/src/wcs/tnx.c Examining data/weightwatcher-1.12+dfsg/src/wcs/wcs.c Examining data/weightwatcher-1.12+dfsg/src/wcs/wcstrig.c Examining data/weightwatcher-1.12+dfsg/src/wcs/cel.h Examining data/weightwatcher-1.12+dfsg/src/wcs/lin.h Examining data/weightwatcher-1.12+dfsg/src/wcs/poly.h Examining data/weightwatcher-1.12+dfsg/src/wcs/proj.h Examining data/weightwatcher-1.12+dfsg/src/wcs/sph.h Examining data/weightwatcher-1.12+dfsg/src/wcs/tnx.h Examining data/weightwatcher-1.12+dfsg/src/wcs/wcs.h Examining data/weightwatcher-1.12+dfsg/src/wcs/wcsmath.h Examining data/weightwatcher-1.12+dfsg/src/wcs/wcstrig.h Examining data/weightwatcher-1.12+dfsg/src/define.h Examining data/weightwatcher-1.12+dfsg/src/xml.c FINAL RESULTS: data/weightwatcher-1.12+dfsg/src/define.h:146:50: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define NPRINTF if (prefs.verbose_type == NORM) fprintf data/weightwatcher-1.12+dfsg/src/define.h:153:50: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define FPRINTF if (prefs.verbose_type == FULL) fprintf data/weightwatcher-1.12+dfsg/src/field.c:67:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (field->filename, filename); data/weightwatcher-1.12+dfsg/src/field.c:76:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(gstr, "Opening %s", field->rfilename); data/weightwatcher-1.12+dfsg/src/field.c:196:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(gstr, "Looking for %s", field->rfilename); data/weightwatcher-1.12+dfsg/src/fits/fitsbody.c:113:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tab->swapname, "%s/vm%05ld_%05x.tmp", data/weightwatcher-1.12+dfsg/src/fits/fitsbody.c:213:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tab->swapname, "%s/vm%05ld_%05x.tmp", data/weightwatcher-1.12+dfsg/src/fits/fitsbody.c:1145:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(body_swapdirname, dirname); data/weightwatcher-1.12+dfsg/src/fits/fitscat.c:138:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str2, "%s %.65s", str2, str); data/weightwatcher-1.12+dfsg/src/fits/fitscat.h:129:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. char printf[80]; /* printing format (C Convention) */ data/weightwatcher-1.12+dfsg/src/fits/fitscat_defs.h:146:29: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define QPRINTF if (qflag) fprintf data/weightwatcher-1.12+dfsg/src/fits/fitscleanup.c:99:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cleanup_filename[cleanup_nfiles++], filename); data/weightwatcher-1.12+dfsg/src/fits/fitsconv.c:106:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(key->comment, comment+strspn(comment, " ")); data/weightwatcher-1.12+dfsg/src/fits/fitsconv.c:123:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(comment, "%s keyword found twice in ", data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:259:39: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fitsread(tab->headbuf, strk, key->printf, H_STRING, T_STRING); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:260:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. if (*key->printf) data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:261:26: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. tdisptoprintf(key->printf, key->printf); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:261:39: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. tdisptoprintf(key->printf, key->printf); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:428:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(str2, n?", %d%n":"%d%n", key->naxisn[n],&j); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:440:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. if (*key->printf) data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:444:56: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fitswrite(tab->headbuf, strk, printftotdisp(key->printf, str), data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:197:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(key->name, keyname); data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:529:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(names[i],key->name); data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:684:15: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, skycathead, 6.0); data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:698:8: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(key->name, map->newname); data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:737:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(key->name, map->newname); data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:825:20: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:825:42: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:825:54: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:845:20: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:845:42: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:845:54: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:866:20: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%lld", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:866:42: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%lld", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:866:54: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%lld", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:869:20: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:869:42: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:869:54: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:889:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%g", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:889:43: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%g", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:889:55: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%g", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:909:20: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%f", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:909:42: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%f", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:909:54: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%f", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:940:22: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:940:44: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:940:56: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:986:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, skycattail, 1.0); data/weightwatcher-1.12+dfsg/src/fits/fitsread.c:60:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cat->filename, filename); data/weightwatcher-1.12+dfsg/src/fits/fitsread.c:98:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ccat->filename, *filenames); data/weightwatcher-1.12+dfsg/src/fits/fitstab.c:446:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tab->extname, tabname); data/weightwatcher-1.12+dfsg/src/fits/fitstab.c:709:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(names[i],tab->extname); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:402:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). case H_COMMENT: strcpy(ptr,str+9); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:405:22: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). case H_HCOMMENT: strcpy(ptr,str+33); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:547:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str, "'%s'", str2); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:553:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. case H_COMMENT: sprintf(str, "%-70s", (char *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:558:22: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. case H_HCOMMENT: sprintf(str, " / %-47s", (char *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:59:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cat->filename, filename); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:418:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:418:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:418:45: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:423:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:423:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:423:45: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:428:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:428:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:428:45: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:433:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:433:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:433:45: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:438:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:438:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:438:45: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:451:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, key->printf?key->printf:"%d", (int)*ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:451:34: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, key->printf?key->printf:"%d", (int)*ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:451:46: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, key->printf?key->printf:"%d", (int)*ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:504:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:504:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:504:45: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%g", *(float *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:509:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:509:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:509:45: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%f", *(double *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:514:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:514:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:514:45: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", *(short *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:519:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:519:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:519:45: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%d", *(int *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:524:11: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:524:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:524:45: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, *key->printf?key->printf:"%lld", *(SLONGLONG *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:537:13: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, key->printf?key->printf:"%d", (int)*ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:537:34: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, key->printf?key->printf:"%d", (int)*ptr); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:537:46: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stream, key->printf?key->printf:"%d", (int)*ptr); data/weightwatcher-1.12+dfsg/src/fitswcs.c:348:6: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(str, (def)); \ data/weightwatcher-1.12+dfsg/src/fitswcs.c:1175:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(strlng, wcs->ctype[olng]); data/weightwatcher-1.12+dfsg/src/fitswcs.c:1176:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(strlat, wcs->ctype[olat]); data/weightwatcher-1.12+dfsg/src/fitswcs.c:1177:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(wcs->ctype[lng], strlng); data/weightwatcher-1.12+dfsg/src/fitswcs.c:1178:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(wcs->ctype[lat], strlat); data/weightwatcher-1.12+dfsg/src/main.c:109:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(prefs.prefs_name, argv[++a]); data/weightwatcher-1.12+dfsg/src/makeit.c:494:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(error, "%s%s", msg1,msg2); data/weightwatcher-1.12+dfsg/src/prefs.c:102:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(keylist[i], key[i].name); data/weightwatcher-1.12+dfsg/src/prefs.c:119:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(str, *(dp++)+1); data/weightwatcher-1.12+dfsg/src/prefs.c:121:11: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(str, *(dp++)); data/weightwatcher-1.12+dfsg/src/prefs.c:134:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str, "%s %s", argkey[argi], argval[argi]); data/weightwatcher-1.12+dfsg/src/prefs.c:213:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char *)key[nkey].ptr, value); data/weightwatcher-1.12+dfsg/src/prefs.c:316:15: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(((char **)key[nkey].ptr)[i], value); data/weightwatcher-1.12+dfsg/src/readimage.c:422:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(str, def); \ data/weightwatcher-1.12+dfsg/src/vector.c:73:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(vector->filename, filename); data/weightwatcher-1.12+dfsg/src/vector.c:79:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(gstr, "Looking for %s", vector->rfilename); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:505:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(requir, "DEC--%s", wcs->pcode); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:511:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(requir, "RA---%s", wcs->pcode); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:517:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(requir, "%s-%s", wcs->lattyp, wcs->pcode); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:523:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(requir, "%s-%s", wcs->lngtyp, wcs->pcode); data/weightwatcher-1.12+dfsg/src/xml.c:112:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(x->fieldname,field->filename); data/weightwatcher-1.12+dfsg/src/xml.c:113:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(x->fieldtype, str); data/weightwatcher-1.12+dfsg/src/xml.c:476:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(uunit, " unit=\"%s\"", unit); data/weightwatcher-1.12+dfsg/src/xml.c:482:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(value, format, *((double *)key[i].ptr)); data/weightwatcher-1.12+dfsg/src/xml.c:491:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(value, format, ((double *)key[i].ptr)[0]); data/weightwatcher-1.12+dfsg/src/xml.c:497:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(value, format, ((double *)key[i].ptr)[j]); data/weightwatcher-1.12+dfsg/src/xml.c:508:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(value, format, *((int *)key[i].ptr)); data/weightwatcher-1.12+dfsg/src/xml.c:517:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(value, format, ((int *)key[i].ptr)[0]); data/weightwatcher-1.12+dfsg/src/xml.c:523:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(value, format, ((int *)key[i].ptr)[j]); data/weightwatcher-1.12+dfsg/src/xml.c:560:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(value, "%s", (char *)key[i].ptr); data/weightwatcher-1.12+dfsg/src/xml.c:569:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(value, "%s", ((char **)key[i].ptr)[0]); data/weightwatcher-1.12+dfsg/src/xml.c:575:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(value, "%s", ((char **)key[i].ptr)[j]); data/weightwatcher-1.12+dfsg/src/xml.c:586:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(value, "%s", key[i].keylist[*((int *)key[i].ptr)]); data/weightwatcher-1.12+dfsg/src/xml.c:595:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(value, "%s", key[i].keylist[((int *)key[i].ptr)[0]]); data/weightwatcher-1.12+dfsg/src/xml.c:601:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(value, "%s", key[i].keylist[((int *)key[i].ptr)[j]]); data/weightwatcher-1.12+dfsg/src/prefs.c:169:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!(envval=getenv(envname))) data/weightwatcher-1.12+dfsg/src/xml.c:215:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!(psuser=getenv("USERNAME"))) /* Cygwin,... */ data/weightwatcher-1.12+dfsg/src/xml.c:216:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. psuser = getenv("LOGNAME"); /* Linux,... */ data/weightwatcher-1.12+dfsg/src/xml.c:217:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. pspath = getenv("PWD"); data/weightwatcher-1.12+dfsg/src/xml.c:218:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. pshost = getenv("HOSTNAME"); data/weightwatcher-1.12+dfsg/src/define.h:142:20: [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(ptrout, ptrin, (size_t)(nel)*sizeof(typ));};;} data/weightwatcher-1.12+dfsg/src/field.c:78:27: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(field->file = fopen(field->filename, "wb"))) data/weightwatcher-1.12+dfsg/src/field.c:84:9: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf, "END "); data/weightwatcher-1.12+dfsg/src/field.c:107:27: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(field->file = fopen(field->filename, "rb+"))) data/weightwatcher-1.12+dfsg/src/field.c:136:7: [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(field->fitshead, mfield->fitshead, field->fitsheadsize); data/weightwatcher-1.12+dfsg/src/field.c:142:7: [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(field->fitshead, mfield->fitshead, field->fitsheadsize); data/weightwatcher-1.12+dfsg/src/field.c:223: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(gstr, "[%d/%d]", nok2, cat->ntab-1); data/weightwatcher-1.12+dfsg/src/field.c:225: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(gstr, "[%2d/%d]", nok2, cat->ntab-1); data/weightwatcher-1.12+dfsg/src/field.c:227: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(gstr, "[%3d/%d]", nok2, cat->ntab-1); data/weightwatcher-1.12+dfsg/src/fits/fitsbody.c:52:1: [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 body_swapdirname[MAXCHARS] = BODY_DEFSWAPDIR; data/weightwatcher-1.12+dfsg/src/fits/fitsbody.c:116:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(file=fopen(tab->swapname, "wb+"))) data/weightwatcher-1.12+dfsg/src/fits/fitsbody.c:216:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(file=fopen(tab->swapname, "wb+"))) data/weightwatcher-1.12+dfsg/src/fits/fitsbody.c:536:11: [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(&val16, bufdata, 2); data/weightwatcher-1.12+dfsg/src/fits/fitsbody.c:543: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(&dval,bufdata,4); data/weightwatcher-1.12+dfsg/src/fits/fitsbody.c:583:11: [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(&val16, bufdata, 2); data/weightwatcher-1.12+dfsg/src/fits/fitsbody.c:712:11: [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(&val16, bufdata, 2); data/weightwatcher-1.12+dfsg/src/fits/fitsbody.c:719: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(&dval,bufdata,4); data/weightwatcher-1.12+dfsg/src/fits/fitsbody.c:759:11: [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(&val16, bufdata, 2); data/weightwatcher-1.12+dfsg/src/fits/fitscat.c:118:4: [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 str2[82]; data/weightwatcher-1.12+dfsg/src/fits/fitscat.c:291: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(tab->headbuf, bintabtemplate, sizeof(bintabtemplate)); data/weightwatcher-1.12+dfsg/src/fits/fitscat.c:408:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((cat->file = fopen(cat->filename, at==WRITE_ONLY?"wb":"rb")) == NULL) data/weightwatcher-1.12+dfsg/src/fits/fitscat.h:124:3: [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 name[80]; /* name */ data/weightwatcher-1.12+dfsg/src/fits/fitscat.h:125:3: [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 comment[80]; /* a comment */ data/weightwatcher-1.12+dfsg/src/fits/fitscat.h:129:3: [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 printf[80]; /* printing format (C Convention) */ data/weightwatcher-1.12+dfsg/src/fits/fitscat.h:130:3: [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 unit[80]; /* physical unit */ data/weightwatcher-1.12+dfsg/src/fits/fitscat.h:131:3: [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 voucd[80]; /* VO ucd */ data/weightwatcher-1.12+dfsg/src/fits/fitscat.h:132:3: [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 vounit[80]; /* VO unit */ data/weightwatcher-1.12+dfsg/src/fits/fitscat.h:148:3: [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 filename[MAXCHARS]; /* file name */ data/weightwatcher-1.12+dfsg/src/fits/fitscat.h:178:3: [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 xtension[82]; /* FITS extension type */ data/weightwatcher-1.12+dfsg/src/fits/fitscat.h:179:3: [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 extname[82]; /* FITS extension name */ data/weightwatcher-1.12+dfsg/src/fits/fitscat.h:192:3: [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 swapname[MAXCHARS]; /* name of the swapfile */ data/weightwatcher-1.12+dfsg/src/fits/fitscat_defs.h:136: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(ptrout, ptrin, (size_t)(nel)*sizeof(typ));} data/weightwatcher-1.12+dfsg/src/fits/fitscheck.c:105:4: [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 cbuf[16]; data/weightwatcher-1.12+dfsg/src/fits/fitscheck.c:227:7: [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(buf, (char *)tab->bodybuf+tab->tabsize-size, size); data/weightwatcher-1.12+dfsg/src/fits/fitscheck.c:269:4: [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 str[32], data/weightwatcher-1.12+dfsg/src/fits/fitscheck.c:289:3: [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(str, "%u", sum); data/weightwatcher-1.12+dfsg/src/fits/fitsconv.c:64:4: [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 comment[82], keyword[16], ptr[82]; data/weightwatcher-1.12+dfsg/src/fits/fitsconv.c:94:7: [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 line[81]; data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:109:4: [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 str[88]; data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:110:4: [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 key[12], name[16], data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:115:46: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. filename = (tab->cat? tab->cat->filename : strcpy(name, "internal header")); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:136: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(key,"NAXIS%-3d", i+1); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:189:34: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). tab->bodysum = (unsigned int)atoi(str); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:210:4: [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 strf[88], strk[16]; data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:248: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(strk, "TTYPE%-3d", i+1); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:256: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(strk, "TUNIT%-3d", i+1); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:258: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(strk, "TDISP%-3d", i+1); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:263: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(strk, "TFORM%-3d", i+1); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:293: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(strk, "TDIM%-3d", i+1); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:340:4: [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 strk[88], str[88]; data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:362: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(strk, "NAXIS%-3d", i+1); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:410: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(strk, "TTYPE%-3d", i+1); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:413: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(strk, "TFORM%-3d", i+1); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:421: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(strk, "TDIM%-3d", i+1); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:436: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(strk, "TUNIT%-3d", i+1); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:442: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(strk, "TDISP%-3d", i+1); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:457: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(str, "%u", tab->bodysum); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:662:3: [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(str, "%d%c", n, t); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:747:4: [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 control[4]; data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:761: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(str, "%%%dc",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:764: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(str, "%%%dd",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:768:9: [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(str, "%%%d.%dd",w,d); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:770:9: [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(str, "%%%dd",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:774:9: [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(str, "%%%d.%dx",w,d); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:776:9: [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(str, "%%%dx",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:780:9: [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(str, "%%%d.%do",w,d); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:782:9: [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(str, "%%%do",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:786:9: [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(str, "%%%d.%df",w,d); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:788:9: [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(str, "%%%df",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:792:9: [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(str, "%%%d.%dE",w,d); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:794:9: [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(str, "%%%dE",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:798:9: [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(str, "%%%d.%dG",w,d); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:800:9: [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(str, "%%%dG",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:847: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(str, "A%d",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:850: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(str, "A%d",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:854:9: [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(str, "I%d.%d",w,d); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:856:9: [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(str, "I%d",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:860:9: [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(str, "O%d.%d",w,d); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:862:9: [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(str, "O%d",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:866:9: [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(str, "Z%d.%d",w,d); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:868:9: [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(str, "Z%d",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:872:9: [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(str, "F%d.%d",w,d); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:874:9: [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(str, "F%d",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:878:9: [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(str, "E%d.%d",w,d); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:880:9: [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(str, "E%d",w); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:884:9: [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(str, "G%d.%d",w,d); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:886:9: [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(str, "G%d",w); data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:606:7: [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 oldname[80]; /* Name of the original pipeline key */ data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:607:7: [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 newname[80]; /* Name of the skycat required key */ data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:665:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). key_col[i] = atoi(++t); data/weightwatcher-1.12+dfsg/src/fits/fitskey.c:814:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ptr = memcpy(rfield, buf+key->pos, key->nbytes); data/weightwatcher-1.12+dfsg/src/fits/fitsmisc.c:44:8: [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 char warning_historystr[WARNING_NMAX][192]={""}; data/weightwatcher-1.12+dfsg/src/fits/fitsmisc.c:89:3: [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(warning_historystr[(nwarning++)%WARNING_NMAX], data/weightwatcher-1.12+dfsg/src/fits/fitsread.c:41:1: [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 padbuf[FBSIZE]; data/weightwatcher-1.12+dfsg/src/fits/fitstab.c:445:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(tab->xtension, "BINTABLE"); data/weightwatcher-1.12+dfsg/src/fits/fitstab.c:457: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(tab->headbuf, bintabtemplate, sizeof(bintabtemplate)); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:61:4: [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 str[82]; data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:79:9: [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(str, "NAXIS%-3d", i); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:116: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(str, "%-8.8s %-71.71s", data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:119: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(str, "%-8.8s= / %-47.47s", data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:122: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(str, "%-8.8s= %-47.47s", data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:124: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(key_ptr, str, 80); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:208: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(keyword, fitsline, 8); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:219: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(comment, fitsline+9, 71); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:271:23: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *((int *)ptr) = atoi(fitsline+j); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:333:4: [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 s[4], str[82]; data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:470:4: [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 str[81],str2[81]; data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:483:6: [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(str, "%20d", *(int *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:485:6: [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(str, "%20d", *(short *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:488:6: [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(str, "%20lld", *(SLONGLONG *)ptr); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:492:19: [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. case H_FLOAT: sprintf(str, " %16.8f", (ttype==T_DOUBLE)? data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:496:18: [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. case H_EXPO: sprintf(str, " %19.12E", (ttype==T_DOUBLE)? data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:502:6: [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(str, " T"); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:504:6: [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(str, " F"); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:520:6: [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(str, "'%-18.18s ", str2); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:526:6: [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(str, "'%-68.68s ", str2); data/weightwatcher-1.12+dfsg/src/fits/fitswrite.c:256:11: [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 char padbuf[FBSIZE]; data/weightwatcher-1.12+dfsg/src/fitswcs.c:350:4: [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 str[MAXCHARS]; data/weightwatcher-1.12+dfsg/src/fitswcs.c:351:4: [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 wstr1[TNX_MAXCHARS], wstr2[TNX_MAXCHARS]; data/weightwatcher-1.12+dfsg/src/fitswcs.c:356:4: [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 name[16], data/weightwatcher-1.12+dfsg/src/fitswcs.c:360:46: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. filename = (tab->cat? tab->cat->filename : strcpy(name, "internal header")); data/weightwatcher-1.12+dfsg/src/fitswcs.c:378: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(str, "CTYPE%-3d", l+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:381: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(str, "CUNIT%-3d", l+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:384: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(str, "CRVAL%-3d", l+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:386: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(str, "CRPIX%-3d", l+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:388: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(str, "CDELT%-3d", l+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:390: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(str, "CRDER%-3d", l+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:392: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(str, "CSYER%-3d", l+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:405:9: [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(str, "CD%d_%d", l+1, j+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:414:9: [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(str, "PC%03d%03d", l+1, j+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:456:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). dpar[l] = atoi(pstr); data/weightwatcher-1.12+dfsg/src/fitswcs.c:534:9: [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(str, "WAT1_001"); data/weightwatcher-1.12+dfsg/src/fitswcs.c:537:11: [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(str, "WAT1_%03d", j); data/weightwatcher-1.12+dfsg/src/fitswcs.c:541:9: [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(str, "WAT2_001"); data/weightwatcher-1.12+dfsg/src/fitswcs.c:544:11: [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(str, "WAT2_%03d", j); data/weightwatcher-1.12+dfsg/src/fitswcs.c:581:11: [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(str, "PROJP%-3d", j); data/weightwatcher-1.12+dfsg/src/fitswcs.c:589:13: [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(str, "PV%d_%d ", l+1, j); data/weightwatcher-1.12+dfsg/src/fitswcs.c:625:4: [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 str[MAXCHARS]; data/weightwatcher-1.12+dfsg/src/fitswcs.c:635: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(str, "NAXIS%-3d", l+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:670: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(str, "CTYPE%-3d", l+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:673: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(str, "CUNIT%-3d", l+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:676: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(str, "CRVAL%-3d", l+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:679: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(str, "CRPIX%-3d", l+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:684: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(str, "CD%d_%d", l+1, j+1); data/weightwatcher-1.12+dfsg/src/fitswcs.c:691:9: [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(str, "PV%d_%d", l+1, j); data/weightwatcher-1.12+dfsg/src/fitswcs.c:754:4: [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 projcode[28][5] = data/weightwatcher-1.12+dfsg/src/fitswcs.c:1162:4: [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 strlng[80], strlat[80]; data/weightwatcher-1.12+dfsg/src/fitswcs.c:2030:3: [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(str,"%02d:%02d:%05.2f", hh, mm, ss); data/weightwatcher-1.12+dfsg/src/fitswcs.c:2057:3: [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(str,"%c%02d:%02d:%04.1f", sign, dd, dm, ds); data/weightwatcher-1.12+dfsg/src/fitswcs.h:65:3: [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 ctype[NAXIS][9]; /* FITS CTYPE strings */ data/weightwatcher-1.12+dfsg/src/fitswcs.h:66:3: [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 cunit[NAXIS][32]; /* FITS CUNIT strings */ data/weightwatcher-1.12+dfsg/src/globals.h:33:1: [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 gstr[MAXCHAR]; data/weightwatcher-1.12+dfsg/src/key.h:39:3: [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 name[32]; data/weightwatcher-1.12+dfsg/src/key.h:45:3: [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 keylist[32][32]; /* List of keywords */ data/weightwatcher-1.12+dfsg/src/main.c:81:3: [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(prefs.sdate_start,"%04d-%02d-%02d", data/weightwatcher-1.12+dfsg/src/main.c:83:3: [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(prefs.stime_start,"%02d:%02d:%02d", data/weightwatcher-1.12+dfsg/src/main.c:89:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(prefs.prefs_name, "default.ww"); data/weightwatcher-1.12+dfsg/src/main.c:145:3: [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(prefs.sdate_end,"%04d-%02d-%02d", data/weightwatcher-1.12+dfsg/src/main.c:147:3: [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(prefs.stime_end,"%02d:%02d:%02d", data/weightwatcher-1.12+dfsg/src/makeit.c:492:4: [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 error[MAXCHAR]; data/weightwatcher-1.12+dfsg/src/preflist.h:87:1: [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 keylist[sizeof(key)/sizeof(pkeystruct)][32]; data/weightwatcher-1.12+dfsg/src/prefs.c:82:4: [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 *cp, str[MAXCHARL], *keyword, *value, **dp; data/weightwatcher-1.12+dfsg/src/prefs.c:86:4: [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 value2[MAXCHARL],envname[MAXCHAR]; data/weightwatcher-1.12+dfsg/src/prefs.c:91:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((infile = fopen(filename,"r")) == NULL) data/weightwatcher-1.12+dfsg/src/prefs.c:213:21: [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. strcpy((char *)key[nkey].ptr, value); data/weightwatcher-1.12+dfsg/src/prefs.c:314:22: [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. free(((char **)key[nkey].ptr)[i]); data/weightwatcher-1.12+dfsg/src/prefs.c:315:25: [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. QMALLOC(((char **)key[nkey].ptr)[i], char, MAXCHAR); data/weightwatcher-1.12+dfsg/src/prefs.c:316:24: [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. strcpy(((char **)key[nkey].ptr)[i], value); data/weightwatcher-1.12+dfsg/src/prefs.h:43:3: [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 prefs_name[MAXCHAR]; /* prefs filename*/ data/weightwatcher-1.12+dfsg/src/prefs.h:44:3: [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 *(weight_name[MAXNIMAGE]); /* WEIGHT filenames */ data/weightwatcher-1.12+dfsg/src/prefs.h:46:3: [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 *(flag_name[MAXNIMAGE]); /* WEIGHT filenames */ data/weightwatcher-1.12+dfsg/src/prefs.h:48:3: [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 *(vec_name[MAXNIMAGE]); /* POLY filenames */ data/weightwatcher-1.12+dfsg/src/prefs.h:80:3: [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 xml_name[MAXCHAR]; /* XML file name */ data/weightwatcher-1.12+dfsg/src/prefs.h:81:3: [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 xsl_name[MAXCHAR]; /* XSL file name (or URL) */ data/weightwatcher-1.12+dfsg/src/prefs.h:82:3: [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 sdate_start[12]; /* ww start date */ data/weightwatcher-1.12+dfsg/src/prefs.h:83:3: [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 stime_start[12]; /* ww start time */ data/weightwatcher-1.12+dfsg/src/prefs.h:84:3: [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 sdate_end[12]; /* ww end date */ data/weightwatcher-1.12+dfsg/src/prefs.h:85:3: [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 stime_end[12]; /* ww end time */ data/weightwatcher-1.12+dfsg/src/readimage.c:48:10: [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 char bufdata0[DATA_BUFSIZE]; data/weightwatcher-1.12+dfsg/src/readimage.c:165:11: [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(&val16, bufdata, 2); data/weightwatcher-1.12+dfsg/src/readimage.c:172: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(&dval,bufdata,4); data/weightwatcher-1.12+dfsg/src/readimage.c:210:11: [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(&val16, bufdata, 2); data/weightwatcher-1.12+dfsg/src/readimage.c:238:10: [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 char bufdata0[DATA_BUFSIZE]; data/weightwatcher-1.12+dfsg/src/readimage.c:330:11: [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(&val16, bufdata, 2); data/weightwatcher-1.12+dfsg/src/readimage.c:337: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(&dval,bufdata,4); data/weightwatcher-1.12+dfsg/src/readimage.c:375:11: [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(&val16, bufdata, 2); data/weightwatcher-1.12+dfsg/src/readimage.c:411:6: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). atoi(strncat(st, &point[10], 70)) \ data/weightwatcher-1.12+dfsg/src/readimage.c:426:4: [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 *buf, st[80], *point; data/weightwatcher-1.12+dfsg/src/readimage.c:429:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(field->file = fopen(field->filename, "rb"))) data/weightwatcher-1.12+dfsg/src/types.h:48:3: [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 filename[MAXCHAR]; /* pointer to the image filename */ data/weightwatcher-1.12+dfsg/src/types.h:50:3: [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 ident[MAXCHAR]; /* field identifier (read from FITS)*/ data/weightwatcher-1.12+dfsg/src/types.h:51:3: [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 rident[MAXCHAR]; /* field identifier (relative) */ data/weightwatcher-1.12+dfsg/src/vector.c:61:11: [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 char str[MAXPOLYCHAR]; data/weightwatcher-1.12+dfsg/src/vector.c:83:24: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(vector->file = fopen(vector->filename, "r"))) data/weightwatcher-1.12+dfsg/src/vector.c:112:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ext=atoi(strtok(NULL, vectok)); data/weightwatcher-1.12+dfsg/src/vector.h:41:3: [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 filename[MAXCHAR]; /* Name of file containing POLYGONS */ data/weightwatcher-1.12+dfsg/src/vector.h:43:3: [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 ident[MAXCHAR]; /* Identificator (a string) */ data/weightwatcher-1.12+dfsg/src/wcs/cel.c:287:1: [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 pcodes[27][4] = data/weightwatcher-1.12+dfsg/src/wcs/cel.c:313:7: [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 char pcode[4]; data/weightwatcher-1.12+dfsg/src/wcs/cel.c:570:7: [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 char pcode[4]; data/weightwatcher-1.12+dfsg/src/wcs/cel.c:599:7: [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 char pcode[4]; data/weightwatcher-1.12+dfsg/src/wcs/cel.h:71:8: [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. extern char pcodes[27][4]; data/weightwatcher-1.12+dfsg/src/wcs/poly.c:86:4: [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 str[512]; data/weightwatcher-1.12+dfsg/src/wcs/poly.c:94: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(str, "The dimensionality of the polynom (%d) exceeds the maximum\n" data/weightwatcher-1.12+dfsg/src/wcs/poly.c:127: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(str, "The degree of the polynom (%d) exceeds the maximum\n" data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:464:4: [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 requir[9]; data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:498:10: [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(wcs->pcode, "%.3s", &ctype[j][5]); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:502:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(wcs->lngtyp, "RA"); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:503:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(wcs->lattyp, "DEC"); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:508:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(wcs->lngtyp, "RA"); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:509:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(wcs->lattyp, "DEC"); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:514:13: [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(wcs->lngtyp, "%cLON", ctype[j][0]); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:515:13: [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(wcs->lattyp, "%cLAT", ctype[j][0]); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:520:13: [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(wcs->lngtyp, "%cLON", ctype[j][0]); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:521:13: [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(wcs->lattyp, "%cLAT", ctype[j][0]); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:593:10: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(wcs->pcode, "SIN"); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:727:10: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(wcs->pcode, "SIN"); data/weightwatcher-1.12+dfsg/src/wcs/wcs.h:73:4: [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 pcode[4]; data/weightwatcher-1.12+dfsg/src/wcs/wcs.h:74:4: [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 lngtyp[5], lattyp[5]; data/weightwatcher-1.12+dfsg/src/xml.c:137:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(file = fopen(prefs.xml_name, "w"))) data/weightwatcher-1.12+dfsg/src/xml.c:205: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(prefs.sdate_end,"%04d-%02d-%02d", data/weightwatcher-1.12+dfsg/src/xml.c:207: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(prefs.stime_end,"%02d:%02d:%02d", data/weightwatcher-1.12+dfsg/src/xml.c:435:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). else if (!(file = fopen(filename, "w"))) data/weightwatcher-1.12+dfsg/src/xml.c:468:4: [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 value[MAXCHAR], uunit[MAXCHAR]; data/weightwatcher-1.12+dfsg/src/xml.c:534: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(value, "%c", *((int *)key[i].ptr)? 'T':'F'); data/weightwatcher-1.12+dfsg/src/xml.c:543:9: [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(value, "%c", ((int *)key[i].ptr)[0]? 'T':'F'); data/weightwatcher-1.12+dfsg/src/xml.c:549:11: [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(value, "%c", ((int *)key[i].ptr)[j]? 'T':'F'); data/weightwatcher-1.12+dfsg/src/xml.c:560:29: [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. sprintf(value, "%s", (char *)key[i].ptr); data/weightwatcher-1.12+dfsg/src/xml.c:569:32: [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. sprintf(value, "%s", ((char **)key[i].ptr)[0]); data/weightwatcher-1.12+dfsg/src/xml.c:575:34: [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. sprintf(value, "%s", ((char **)key[i].ptr)[j]); data/weightwatcher-1.12+dfsg/src/xml.h:46:3: [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 fieldname[MAXCHAR]; /* name of the file */ data/weightwatcher-1.12+dfsg/src/xml.h:47:3: [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 fieldtype[2]; /* F flag, W weight */ data/weightwatcher-1.12+dfsg/src/fits/fitsconv.c:96:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(line, lptr, 80); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:423:7: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(str, "("); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:431:7: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(str2, ")"); data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:492:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(tab->headbuf, "SIMPLE = T " data/weightwatcher-1.12+dfsg/src/fits/fitshead.c:523:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(tab->headbuf, "XTENSION= 'IMAGE ' " data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:148:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(keyword); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:175:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strncmp(fitsbuf, str, strlen(str))) data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:339:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str,fitsbuf+80*pos,80); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:362:18: [1] (buffer) sscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. case H_BOOL: sscanf(str+10, "%1s", s); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:518:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(str2)<=18) data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:579:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (posoff==10 && i && (l=69-strlen(str))>0) data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:581:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str2, cstr, i); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:583:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(str, " "); data/weightwatcher-1.12+dfsg/src/fits/fitsutil.c:584:5: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(str, str2, l); data/weightwatcher-1.12+dfsg/src/fitswcs.c:130:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(wcs->ctype[l], ctype[l], 8); data/weightwatcher-1.12+dfsg/src/fitswcs.c:132:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(wcs->ctype[l], "RA---AIT", 8); data/weightwatcher-1.12+dfsg/src/fitswcs.c:134:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(wcs->ctype[l], "DEC--AIT", 8); data/weightwatcher-1.12+dfsg/src/fitswcs.c:380:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(wcs->ctype[l], str, 8); data/weightwatcher-1.12+dfsg/src/fitswcs.c:383:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(wcs->cunit[l], str, 32); data/weightwatcher-1.12+dfsg/src/fitswcs.c:538:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pstr += strlen(pstr); data/weightwatcher-1.12+dfsg/src/fitswcs.c:545:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pstr += strlen(pstr); data/weightwatcher-1.12+dfsg/src/main.c:97:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(argv[a])<4 || opt == '-') data/weightwatcher-1.12+dfsg/src/prefs.c:165:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(envname, valuet, nc=strcspn(valuet,"}/:\"\'\\")); data/weightwatcher-1.12+dfsg/src/readimage.c:406:10: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. atof(strncat(st, &point[10], 70)) \ data/weightwatcher-1.12+dfsg/src/readimage.c:411:11: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. atoi(strncat(st, &point[10], 70)) \ data/weightwatcher-1.12+dfsg/src/vector.c:101:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). str[strlen(str)-1] = (char)'\0'; data/weightwatcher-1.12+dfsg/src/vector.c:102:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(vector->ident, str+2, MAXCHAR); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:466:4: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(wcs->pcode, ""); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:467:4: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(requir, ""); data/weightwatcher-1.12+dfsg/src/wcs/wcs.c:535:10: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(requir, ""); ANALYSIS SUMMARY: Hits = 396 Lines analyzed = 21899 in approximately 0.63 seconds (34624 lines/second) Physical Source Lines of Code (SLOC) = 13623 Hits@level = [0] 181 [1] 30 [2] 232 [3] 5 [4] 129 [5] 0 Hits@level+ = [0+] 577 [1+] 396 [2+] 366 [3+] 134 [4+] 129 [5+] 0 Hits/KSLOC@level+ = [0+] 42.3548 [1+] 29.0685 [2+] 26.8663 [3+] 9.83631 [4+] 9.46928 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) 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.