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/pyephem-3.7.7.1/astro_export.h Examining data/pyephem-3.7.7.1/extensions/data/jupiter.1020.c Examining data/pyephem-3.7.7.1/extensions/data/jupiter.9910.c Examining data/pyephem-3.7.7.1/extensions/data/mars.1020.c Examining data/pyephem-3.7.7.1/extensions/data/mars.9910.c Examining data/pyephem-3.7.7.1/extensions/data/saturne.1020.c Examining data/pyephem-3.7.7.1/extensions/data/saturne.9910.c Examining data/pyephem-3.7.7.1/extensions/data/uranus.1020.c Examining data/pyephem-3.7.7.1/extensions/data/uranus.9910.c Examining data/pyephem-3.7.7.1/extensions/dtoa.c Examining data/pyephem-3.7.7.1/extensions/_libastro.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/aa_hadec.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/aberration.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/actan.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/airmass.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/anomaly.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/ap_as.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/astro.h Examining data/pyephem-3.7.7.1/libastro-3.7.7/atlas.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/auxil.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/bdl.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/bdl.h Examining data/pyephem-3.7.7.1/libastro-3.7.7/chap95.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/chap95.h Examining data/pyephem-3.7.7.1/libastro-3.7.7/chap95_data.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/circum.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/comet.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/constel.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/deep.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/deepconst.h Examining data/pyephem-3.7.7.1/libastro-3.7.7/deltat.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/earthsat.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/eq_ecl.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/eq_gal.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/formats.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/helio.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/jupmoon.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/libration.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/magdecl.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/marsmoon.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/misc.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/mjd.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/moon.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/mooncolong.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/moonnf.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/nutation.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/obliq.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/parallactic.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/parallax.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/plans.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/plmoon.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/plshadow.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/precess.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/preferences.h Examining data/pyephem-3.7.7.1/libastro-3.7.7/reduce.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/refract.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/rings.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/riset.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/riset_cir.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/satlib.h Examining data/pyephem-3.7.7.1/libastro-3.7.7/satmoon.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/satspec.h Examining data/pyephem-3.7.7.1/libastro-3.7.7/sattypes.h Examining data/pyephem-3.7.7.1/libastro-3.7.7/sdp4.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/sgp4.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/sphcart.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/sun.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/thetag.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/twobody.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/umoon.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/utc_gst.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/vector.h Examining data/pyephem-3.7.7.1/libastro-3.7.7/vsop87.c Examining data/pyephem-3.7.7.1/libastro-3.7.7/vsop87.h Examining data/pyephem-3.7.7.1/libastro-3.7.7/vsop87_data.c FINAL RESULTS: data/pyephem-3.7.7.1/extensions/dtoa.c:1794:4: [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*)decimalpoint_cache, (CONST char*)s0); data/pyephem-3.7.7.1/libastro-3.7.7/atlas.c:150: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 (buf, err); data/pyephem-3.7.7.1/libastro-3.7.7/atlas.c:170: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 (buf, err); data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1676:10: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. if (sscanf (lp, "%d %s %s", &code, rastr, decstr) == 3) { data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1689:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (msg, "Bad draw code in %s: %d", cname, code); data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1696:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (msg, "Bad RA format in %s: %s", cname, rastr); data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1701:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (msg, "Bad Dec format in %s: %s", cname, decstr); data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1719:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (msg, "Unknown constellation: %s", lp); data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1724:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (msg, "Duplicate definition for %s", lp); data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1730: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 (cname, lp); data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1744:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. l += sprintf (msg+l, "%s ", cns_namemap[c]+5); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:88:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "Bogus: %s", s); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:132:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: Unknown type %c for %s", enm(flds), data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:395:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: type f needs 5-7 fields, not %d", data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:416:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: Bad f class: %c", enm(flds), data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:434:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: Invalid angle string '%s'", enm(flds), sflds[0]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:445:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: Invalid angle string '%s'", enm(flds), sflds[0]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:485:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: type e needs 13 or 14 fields, not %d", data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:526:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: type h needs 11 or 12 fields, not %d", data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:556:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: type p needs 10 or 11 fields, not %d", data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:585:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: type E needs 11 or 12 fields, not %d", data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:638:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: Unknown planet or moon", enm(flds)); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:651:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: B need 7 fields, not %d", enm(flds), nf); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:668:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: Bad B class: %c", enm(flds), data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:692:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: Invalid angle string '%s'", enm(flds), sflds[0]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:703:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: Invalid angle string '%s'", enm(flds), sflds[0]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:741:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: Bogus B semi major axis: %g", data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:747:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, "%s: Bogus B period: %g", enm(flds), data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:767:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot,"%s: B period suffix not Y, D or H: %c", data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:788:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (whynot, data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:891:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. lp += sprintf (lp, "%s,f", op->o_name); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:916:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. lp += sprintf (lp, "%s,e", op->o_name); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:942:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. lp += sprintf (lp, "%s,h", op->o_name); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:961:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. lp += sprintf (lp, "%s,p", op->o_name); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:982:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. lp += sprintf (lp, "%s,E", op->o_name); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1003:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. lp += sprintf (lp, "%s,B", op->o_name); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1046:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. lp += sprintf (lp, "%s,P", op->o_name); data/pyephem-3.7.7.1/libastro-3.7.7/formats.c:45:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. out += sprintf (out, "%*s-0", w-2, ""); data/pyephem-3.7.7.1/libastro-3.7.7/magdecl.c:45:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (mfile, "%s/%s", dir, mfn); data/pyephem-3.7.7.1/libastro-3.7.7/magdecl.c:48:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (err, "%s: %s", mfile, strerror(errno)); data/pyephem-3.7.7.1/libastro-3.7.7/magdecl.c:57:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (err, "%s: Magnetic model only available for %g .. %g. See http://www.ngdc.noaa.gov", mfile, ti, ti+5); data/pyephem-3.7.7.1/libastro-3.7.7/magdecl.c:103:7: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. scanf("%s", err); data/pyephem-3.7.7.1/libastro-3.7.7/magdecl.c:151:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(c_str,"%f%s",&epoc,model); data/pyephem-3.7.7.1/libastro-3.7.7/misc.c:145:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (nsstr, "Moon of %s", biop[op->pl_code].o_name); data/pyephem-3.7.7.1/libastro-3.7.7/plmoon.c:92:2: [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 (builtin[idx].o_name, name); data/pyephem-3.7.7.1/libastro-3.7.7/plmoon.c:282:2: [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 (moonop->o_name, mdp->full); data/pyephem-3.7.7.1/extensions/_libastro.c:195:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&planet->obj, &builtins[builtin_index], sizeof(Obj)); data/pyephem-3.7.7.1/extensions/_libastro.c:232:13: [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 buffer[13]; data/pyephem-3.7.7.1/extensions/_libastro.c:504:13: [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 buffer[64]; data/pyephem-3.7.7.1/extensions/_libastro.c:510: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(buffer, "%d/%d/%d %02d:%02d:%02d", data/pyephem-3.7.7.1/extensions/_libastro.c:1328:6: [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[1024]; data/pyephem-3.7.7.1/extensions/_libastro.c:2662:6: [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, *comma, errmsg[256]; data/pyephem-3.7.7.1/extensions/_libastro.c:3020:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((void *)&newbody->now, (void *)&body->now, sizeof(Now)); data/pyephem-3.7.7.1/extensions/_libastro.c:3021:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((void *)&newbody->obj, (void *)&body->obj, sizeof(Obj)); data/pyephem-3.7.7.1/extensions/_libastro.c:3022:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((void *)&newbody->riset, (void *)&body->riset, sizeof(RiseSet)); data/pyephem-3.7.7.1/extensions/dtoa.c:616: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. #define Bcopy(x,y) memcpy((char *)&x->sign, (char *)&y->sign, \ data/pyephem-3.7.7.1/extensions/dtoa.c:1507:17: [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 unsigned char hexdig[256]; data/pyephem-3.7.7.1/libastro-3.7.7/aa_hadec.c:77: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: aa_hadec.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/aberration.c:161: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: aberration.c,v $ $Date: 2006/08/28 00:22:26 $ $Revision: 1.6 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/actan.c:67: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: actan.c,v $ $Date: 2001/01/10 16:32:21 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/airmass.c:26: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: airmass.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/anomaly.c:63: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: anomaly.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/ap_as.c:24:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((void *)&n, (void *)np, sizeof(Now)); data/pyephem-3.7.7.1/libastro-3.7.7/ap_as.c:35:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((void *)&n, (void *)np, sizeof(Now)); data/pyephem-3.7.7.1/libastro-3.7.7/ap_as.c:60:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((void *)&n, (void *)np, sizeof(Now)); data/pyephem-3.7.7.1/libastro-3.7.7/ap_as.c:68: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: ap_as.c,v $ $Date: 2006/08/28 00:20:58 $ $Revision: 1.8 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/astro.h:91:2: [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 n_tznm[8]; /* time zone name; 7 chars or less, always 0 at end */ data/pyephem-3.7.7.1/libastro-3.7.7/astro.h:143:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char co_name[MAXNM];/* name, including \0 */ \ data/pyephem-3.7.7.1/libastro-3.7.7/astro.h:167:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fo_spect[2]; /* spectral codes, if appropriate */ \ data/pyephem-3.7.7.1/libastro-3.7.7/astro.h:229:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b_2spect[2]; /* secondary's spectrum */ data/pyephem-3.7.7.1/libastro-3.7.7/atlas.c:32:9: [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 buf[512]; data/pyephem-3.7.7.1/libastro-3.7.7/atlas.c:46:2: [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(buf, "V%d - P%3d", zone+1, p-i+zone*516); data/pyephem-3.7.7.1/libastro-3.7.7/atlas.c:75:9: [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 buf[512]; data/pyephem-3.7.7.1/libastro-3.7.7/atlas.c:111:2: [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(buf, "V%d - P%3d", south+1, p+(int)(ra/w)); data/pyephem-3.7.7.1/libastro-3.7.7/atlas.c:140:9: [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 buf[512]; data/pyephem-3.7.7.1/libastro-3.7.7/atlas.c:188:2: [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(buf, "V%d - P%3d", south+1, data/pyephem-3.7.7.1/libastro-3.7.7/atlas.c:196: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: atlas.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.8 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/auxil.c:42: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: auxil.c,v $ $Date: 2003/05/04 04:41:57 $ $Revision: 1.8 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/bdl.c:70: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: bdl.c,v $ $Date: 2008/04/20 08:11:35 $ $Revision: 1.6 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/chap95.c:174: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: chap95.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/chap95_data.c:783: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: chap95_data.c,v $ $Date: 1997/05/19 18:21:12 $ $Revision: 1.1 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/circum.c:860: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: circum.c,v $ $Date: 2004/11/25 20:49:44 $ $Revision: 1.18 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/comet.c:83: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: comet.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:150: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 *cns_namemap[ NCNS ] = { data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1650:2: [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[1024]; /* one line from the file */ data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1651:2: [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 cname[1024]; /* constellation name */ data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1663:6: [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 rastr[64], decstr[64]; data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1682: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 (msg,"Found coord line before first constellation"); data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1746:3: [2] (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 string. strcat (msg, ": no definition found"); data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1803: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: constel.c,v $ $Date: 2005/03/05 06:55:22 $ $Revision: 1.13 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:22: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 *enm (char *flds[MAXFLDS]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:22:19: [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 *enm (char *flds[MAXFLDS]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:23:30: [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 int crack_f (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:24:30: [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 int crack_e (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:25:30: [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 int crack_h (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:26:30: [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 int crack_p (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:27:30: [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 int crack_E (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:28:30: [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 int crack_P (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:29:30: [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 int crack_B (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:30:33: [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 int crack_name (Obj *op, char *flds[MAXFLDS], int nf, data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:62:2: [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 copy[MAXDBLINE]; /* work copy; leave s untouched */ data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:63:2: [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 *flds[MAXFLDS]; /* point to each field for easy reference */ data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:231:2: [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 (op->o_name, "%.*s", i, name); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:364:2: [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[32]; data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:366:2: [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 (buf, "%.*s", thru-from+1, l+from-1); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:376:2: [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[32]; data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:379:2: [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 (buf, ".%.*s", 5, l+start); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:387:19: [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. crack_f (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]) data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:389:2: [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 *sflds[MAXFLDS]; data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:424:6: [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[sizeof(op->f_spect)+1]; data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:426: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 (buf, "%.*s", (int)sizeof(op->f_spect), sflds[2]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:481:19: [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. crack_e (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]) data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:522:19: [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. crack_h (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]) data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:552:19: [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. crack_p (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]) data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:581:19: [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. crack_E (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]) data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:601:17: [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). op->es_orbit = atoi (flds[10]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:621:19: [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. crack_P (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]) data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:632: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 ((void *)op, bop, sizeof(ObjPl)); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:643:19: [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. crack_B (Obj *op, char *flds[MAXFLDS], int nf, char whynot[]) data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:645:2: [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 *sflds[MAXFLDS]; data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:675:6: [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[sizeof(op->f_spect)+1]; data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:677: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 (buf, "%.*s", (int)sizeof(op->f_spect), sflds[2]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:682:6: [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[sizeof(op->b_2spect)+1]; data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:684: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 (buf, "%.*s", (int)sizeof(op->b_2spect), sflds[3]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:799: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. crack_name (Obj *op, char *flds[MAXFLDS], int nf, char nm[][MAXNM], int nnm) data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:801:2: [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 *sflds[MAXFLDS]; data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:815: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 * data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:816:6: [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. enm (char *flds[MAXFLDS]) data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:818:2: [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 *sflds[MAXFLDS]; data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:843:2: [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 *sflds[MAXFLDS]; data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:893:12: [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. lp += sprintf (lp, "|%c", op->f_class); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:895:12: [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. lp += sprintf (lp, "|%.*s", (int)sizeof(op->f_spect), op->f_spect); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:899:12: [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. lp += sprintf (lp, "|%.6g",cos(op->f_dec)*op->f_pmRA/1.327e-11); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:903:12: [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. lp += sprintf (lp, "|%.6g", op->f_pmdec/1.327e-11); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:904:8: [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. lp += sprintf (lp, ",%.2f", get_mag(op)); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:906:8: [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. lp += sprintf (lp, ",%.6g", tmp); /* %.7g gives 2000.001 */ data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:907:8: [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. lp += sprintf (lp, ",%.7g", op->f_size); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:909:12: [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. lp += sprintf (lp,"|%g|%g", op->f_size*get_ratio(op), data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:917:8: [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. lp += sprintf (lp, ",%.7g", op->e_inc); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:918:8: [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. lp += sprintf (lp, ",%.7g", op->e_Om); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:919:8: [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. lp += sprintf (lp, ",%.7g", op->e_om); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:920:8: [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. lp += sprintf (lp, ",%.7g", op->e_a); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:921:8: [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. lp += sprintf (lp, ",%.7g", 0.0); /* retired op->e_n */ data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:922:8: [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. lp += sprintf (lp, ",%.7g", op->e_e); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:923:8: [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. lp += sprintf (lp, ",%.7g", op->e_M); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:930:12: [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. lp += sprintf (lp, ",g%.7g", op->e_mag.m1); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:932:12: [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. lp += sprintf (lp, ",H%.7g", op->e_mag.m1); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:934:12: [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. lp += sprintf (lp, ",%.7g", op->e_mag.m1); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:935:8: [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. lp += sprintf (lp, ",%.7g", op->e_mag.m2); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:936:8: [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. lp += sprintf (lp, ",%.7g", op->e_size); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:946:8: [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. lp += sprintf (lp, ",%.7g", op->h_inc); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:947:8: [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. lp += sprintf (lp, ",%.7g", op->h_Om); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:948:8: [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. lp += sprintf (lp, ",%.7g", op->h_om); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:949:8: [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. lp += sprintf (lp, ",%.7g", op->h_e); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:950:8: [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. lp += sprintf (lp, ",%.7g", op->h_qp); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:953:8: [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. lp += sprintf (lp, ",%.7g", op->h_g); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:954:8: [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. lp += sprintf (lp, ",%.7g", op->h_k); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:955:8: [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. lp += sprintf (lp, ",%.7g", op->h_size); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:965:8: [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. lp += sprintf (lp, ",%.7g", op->p_inc); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:966:8: [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. lp += sprintf (lp, ",%.7g", op->p_om); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:967:8: [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. lp += sprintf (lp, ",%.7g", op->p_qp); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:968:8: [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. lp += sprintf (lp, ",%.7g", op->p_Om); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:971:8: [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. lp += sprintf (lp, ",%.7g", op->p_g); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:972:8: [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. lp += sprintf (lp, ",%.7g", op->p_k); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:973:8: [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. lp += sprintf (lp, ",%.7g", op->p_size); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:985:8: [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. lp += sprintf (lp, "%d/%.12g/%d", m, d, y); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:987:8: [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. lp += sprintf (lp, ",%.8g", op->es_inc); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:988:8: [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. lp += sprintf (lp, ",%.8g", op->es_raan); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:989:8: [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. lp += sprintf (lp, ",%.8g", op->es_e); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:990:8: [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. lp += sprintf (lp, ",%.8g", op->es_ap); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:991:8: [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. lp += sprintf (lp, ",%.8g", op->es_M); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:992:8: [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. lp += sprintf (lp, ",%.12g", op->es_n); /* double */ data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:993:8: [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. lp += sprintf (lp, ",%.8g", op->es_decay); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:994:8: [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. lp += sprintf (lp, ",%d", op->es_orbit); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:995:8: [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. lp += sprintf (lp, ",%.8g", op->es_drag); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1005:12: [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. lp += sprintf (lp, "|%c", op->f_class); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1007:12: [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. lp += sprintf (lp, "|%.*s", (int)sizeof(op->f_spect), op->f_spect); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1009:12: [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. lp += sprintf (lp, "|%.*s", (int)sizeof(op->b_2spect),op->b_2spect); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1013:12: [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. lp += sprintf (lp, "|%.6g",cos(op->f_dec)*op->f_pmRA/1.327e-11); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1017:12: [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. lp += sprintf (lp, "|%.6g", op->f_pmdec/1.327e-11); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1018:8: [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. lp += sprintf (lp, ",%.2f", get_mag(op)); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1019:8: [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. lp += sprintf (lp, "|%.2f", op->b_2mag/MAGSCALE); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1021:8: [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. lp += sprintf (lp, ",%.6g", tmp); /* %.7g gives 2000.001 */ data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1023:12: [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. lp += sprintf (lp, ",%.6g", op->b_bo.bo_a); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1024:12: [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. lp += sprintf (lp, "|%.6g", op->b_bo.bo_i); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1025:12: [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. lp += sprintf (lp, "|%.6g", op->b_bo.bo_O); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1026:12: [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. lp += sprintf (lp, "|%.6g", op->b_bo.bo_e); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1027:12: [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. lp += sprintf (lp, "|%.6g", op->b_bo.bo_T); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1028:12: [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. lp += sprintf (lp, "|%.6g", op->b_bo.bo_o); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1029:12: [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. lp += sprintf (lp, "|%.6gy", op->b_bo.bo_P); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1035: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. lp += sprintf (lp, "%c%.6g", i==0?',':'|', bp->bp_ep); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1036: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. lp += sprintf (lp, "|%.6g", bp->bp_sep); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1037: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. lp += sprintf (lp, "|%.6g", raddeg(bp->bp_pa)); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:1050: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: dbfmt.c,v $ $Date: 2009/10/09 21:28:11 $ $Revision: 1.45 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/deep.c:790: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: deep.c,v $ $Date: 2000/09/25 19:43:03 $ $Revision: 1.2 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/earthsat.c:800: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: earthsat.c,v $ $Date: 2012/10/01 00:05:10 $ $Revision: 1.13 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/eq_ecl.c:72: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: eq_ecl.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.4 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/eq_gal.c:99: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: eq_gal.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.4 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/formats.c:47: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. out += sprintf (out, "%*d", w, isneg ? -d : d); data/pyephem-3.7.7.1/libastro-3.7.7/formats.c:53: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. out += sprintf (out, ":%02d", m); data/pyephem-3.7.7.1/libastro-3.7.7/formats.c:56: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. out += sprintf (out, ":%02d.%1d", f/10, f%10); data/pyephem-3.7.7.1/libastro-3.7.7/formats.c:61: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. out += sprintf (out, ":%02d:%02d", m, s); data/pyephem-3.7.7.1/libastro-3.7.7/formats.c:66: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. out += sprintf (out, ":%02d:%02d.%1d", m, s/10, s%10); data/pyephem-3.7.7.1/libastro-3.7.7/formats.c:71: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. out += sprintf (out, ":%02d:%02d.%02d", m, s/100, s%100); data/pyephem-3.7.7.1/libastro-3.7.7/formats.c:101: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. out += sprintf (out, "%4d/%02d/%02.6g", y, m, d); data/pyephem-3.7.7.1/libastro-3.7.7/formats.c:104: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. out += sprintf (out, "%2.6g/%02d/%-4d", d, m, y); data/pyephem-3.7.7.1/libastro-3.7.7/formats.c:107: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. out += sprintf (out, "%2d/%02.6g/%-4d", m, d, y); data/pyephem-3.7.7.1/libastro-3.7.7/formats.c:129:2: [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[256]; data/pyephem-3.7.7.1/libastro-3.7.7/formats.c:265: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: formats.c,v $ $Date: 2006/04/10 09:00:06 $ $Revision: 1.17 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/helio.c:51: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: helio.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/jupmoon.c:12: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. static int use_bdl (double jd, char *dir, MoonData md[J_NMOONS]); data/pyephem-3.7.7.1/libastro-3.7.7/jupmoon.c:58:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (md, jmd, sizeof(jmd)); data/pyephem-3.7.7.1/libastro-3.7.7/jupmoon.c:368: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: jupmoon.c,v $ $Date: 2006/08/29 03:16:47 $ $Revision: 1.7 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/libration.c: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 max_harmonic[14]; data/pyephem-3.7.7.1/libastro-3.7.7/libration.c:2213: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: libration.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.4 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/magdecl.c:40:2: [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 mfile[1024]; data/pyephem-3.7.7.1/libastro-3.7.7/magdecl.c:46:11: [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). wmmdat = fopen (mfile, "r"); data/pyephem-3.7.7.1/libastro-3.7.7/magdecl.c:69: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 err[1024]; data/pyephem-3.7.7.1/libastro-3.7.7/magdecl.c:125:13: [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 model[20], c_str[81], c_new[5]; data/pyephem-3.7.7.1/libastro-3.7.7/magdecl.c:381: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: magdecl.c,v $ $Date: 2004/10/12 15:21:48 $ $Revision: 1.6 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/marsmoon.c:12: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. static int use_bdl (double JD, char *dir, MoonData md[M_NMOONS]); data/pyephem-3.7.7.1/libastro-3.7.7/marsmoon.c:53:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (md, mmd, sizeof(mmd)); data/pyephem-3.7.7.1/libastro-3.7.7/marsmoon.c:244: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: marsmoon.c,v $ $Date: 2006/08/29 03:16:47 $ $Revision: 1.8 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/misc.c:134:13: [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 nsstr[16]; data/pyephem-3.7.7.1/libastro-3.7.7/misc.c:419:9: [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 *names[8] = { data/pyephem-3.7.7.1/libastro-3.7.7/misc.c:505: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: misc.c,v $ $Date: 2005/03/11 16:47:46 $ $Revision: 1.18 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/mjd.c:256: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: mjd.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.6 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/moon.c:75: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 max_harmonic[NARGS]; data/pyephem-3.7.7.1/libastro-3.7.7/moon.c:3467: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: moon.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.4 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/mooncolong.c:236: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: mooncolong.c,v $ $Date: 2004/05/05 17:45:49 $ $Revision: 1.4 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/moonnf.c:69: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: moonnf.c,v $ $Date: 2003/03/20 08:50:15 $ $Revision: 1.1 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/nutation.c:441: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: nutation.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.4 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/obliq.c:27: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: obliq.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/parallactic.c:54: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: parallactic.c,v $ $Date: 2003/06/30 04:23:36 $ $Revision: 1.4 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/parallax.c:42: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: parallax.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/plans.c:227: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: plans.c,v $ $Date: 2003/11/15 04:07:36 $ $Revision: 1.5 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/plmoon.c:118:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&plnow[SUN], np, sizeof(Now)); data/pyephem-3.7.7.1/libastro-3.7.7/plmoon.c:132: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 (&plnow[MARS], np, sizeof(Now)); data/pyephem-3.7.7.1/libastro-3.7.7/plmoon.c:150: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 (&plnow[JUPITER], np, sizeof(Now)); data/pyephem-3.7.7.1/libastro-3.7.7/plmoon.c:174: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 (&plnow[SATURN], np, sizeof(Now)); data/pyephem-3.7.7.1/libastro-3.7.7/plmoon.c:195: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 (&plnow[URANUS], np, sizeof(Now)); data/pyephem-3.7.7.1/libastro-3.7.7/plshadow.c:50: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: plshadow.c,v $ $Date: 2004/12/17 20:53:43 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/precess.c:142: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: precess.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.4 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/reduce.c:78: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: reduce.c,v $ $Date: 2003/03/28 10:23:35 $ $Revision: 1.4 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/refract.c:91: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: refract.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.6 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/rings.c:45: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: rings.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/riset.c:100: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: riset.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/riset_cir.c:35:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy ((void *)&n, (void *)np, sizeof(n)); data/pyephem-3.7.7.1/libastro-3.7.7/riset_cir.c:36:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy ((void *)&o, (void *)op, sizeof(o)); data/pyephem-3.7.7.1/libastro-3.7.7/riset_cir.c:144: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. (void) strcpy (o.o_name, "Sun"); data/pyephem-3.7.7.1/libastro-3.7.7/riset_cir.c:426: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: riset_cir.c,v $ $Date: 2013/01/06 01:12:57 $ $Revision: 1.18 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/satmoon.c:12: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. static int use_bdl (double JD, char *dir, MoonData md[S_NMOONS]); data/pyephem-3.7.7.1/libastro-3.7.7/satmoon.c:63:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (md, smd, sizeof(smd)); data/pyephem-3.7.7.1/libastro-3.7.7/satmoon.c:489: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: satmoon.c,v $ $Date: 2007/07/24 18:15:28 $ $Revision: 1.8 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/sdp4.c:430: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: sdp4.c,v $ $Date: 2002/12/26 05:43:07 $ $Revision: 1.5 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/sgp4.c:401: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: sgp4.c,v $ $Date: 2012/10/01 00:05:23 $ $Revision: 1.5 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/sphcart.c:43: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: sphcart.c,v $ $Date: 2006/08/28 00:20:27 $ $Revision: 1.4 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/sun.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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: sun.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/thetag.c:90: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: thetag.c,v $ $Date: 2000/10/07 05:12:17 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/twobody.c:243: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: twobody.c,v $ $Date: 2004/04/20 04:17:08 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/umoon.c:12: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. static int use_bdl (double jd, char *dir, MoonData md[U_NMOONS]); data/pyephem-3.7.7.1/libastro-3.7.7/umoon.c:55:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (md, umd, sizeof(umd)); data/pyephem-3.7.7.1/libastro-3.7.7/umoon.c:249: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: umoon.c,v $ $Date: 2006/08/29 03:16:47 $ $Revision: 1.10 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/utc_gst.c:95: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: utc_gst.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.3 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/vsop87.c:209: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: vsop87.c,v $ $Date: 2003/03/20 08:51:37 $ $Revision: 1.4 $ $Name: $"}; data/pyephem-3.7.7.1/libastro-3.7.7/vsop87_data.c:6988: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 *rcsid[2] = {(char *)rcsid, "@(#) $RCSfile: vsop87_data.c,v $ $Date: 1997/05/19 18:21:42 $ $Revision: 1.1 $ $Name: $"}; data/pyephem-3.7.7.1/extensions/_libastro.c:1683:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(body->obj.o_name, name, MAXNM); data/pyephem-3.7.7.1/extensions/dtoa.c:1793:12: [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). MALLOC(strlen((CONST char*)s0) + 1))) { data/pyephem-3.7.7.1/libastro-3.7.7/constel.c:1668:21: [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). for (lp = line+strlen(line)-1; lp>=line && isspace(*lp); --lp) data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:76:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). (void) strncpy (copy, s, MAXDBLINE-1); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:78:6: [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). i = strlen(copy); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:753:10: [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). l = strlen (sflds[6]); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:807:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (nm[i], sflds[i], MAXNM); data/pyephem-3.7.7.1/libastro-3.7.7/dbfmt.c:810:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (op->o_name, sflds[0], MAXNM-1); data/pyephem-3.7.7.1/libastro-3.7.7/formats.c:134:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (str, str0, sizeof(str)-1); ANALYSIS SUMMARY: Hits = 275 Lines analyzed = 61383 in approximately 2.51 seconds (24435 lines/second) Physical Source Lines of Code (SLOC) = 54379 Hits@level = [0] 136 [1] 9 [2] 220 [3] 0 [4] 46 [5] 0 Hits@level+ = [0+] 411 [1+] 275 [2+] 266 [3+] 46 [4+] 46 [5+] 0 Hits/KSLOC@level+ = [0+] 7.55806 [1+] 5.0571 [2+] 4.89159 [3+] 0.845915 [4+] 0.845915 [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.