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/gnustep-back-0.28.0/Headers/art/ARTContext.h Examining data/gnustep-back-0.28.0/Headers/cairo/CairoContext.h Examining data/gnustep-back-0.28.0/Headers/cairo/CairoFaceInfo.h Examining data/gnustep-back-0.28.0/Headers/cairo/CairoFontEnumerator.h Examining data/gnustep-back-0.28.0/Headers/cairo/CairoFontInfo.h Examining data/gnustep-back-0.28.0/Headers/cairo/CairoGState.h Examining data/gnustep-back-0.28.0/Headers/cairo/CairoPDFSurface.h Examining data/gnustep-back-0.28.0/Headers/cairo/CairoPSSurface.h Examining data/gnustep-back-0.28.0/Headers/cairo/CairoSurface.h Examining data/gnustep-back-0.28.0/Headers/cairo/Win32CairoGState.h Examining data/gnustep-back-0.28.0/Headers/cairo/Win32CairoGlitzSurface.h Examining data/gnustep-back-0.28.0/Headers/cairo/Win32CairoSurface.h Examining data/gnustep-back-0.28.0/Headers/cairo/XGCairoGlitzSurface.h Examining data/gnustep-back-0.28.0/Headers/cairo/XGCairoModernSurface.h Examining data/gnustep-back-0.28.0/Headers/cairo/XGCairoSurface.h Examining data/gnustep-back-0.28.0/Headers/cairo/XGCairoXImageSurface.h Examining data/gnustep-back-0.28.0/Headers/fontconfig/FCFaceInfo.h Examining data/gnustep-back-0.28.0/Headers/fontconfig/FCFontEnumerator.h Examining data/gnustep-back-0.28.0/Headers/fontconfig/FCFontInfo.h Examining data/gnustep-back-0.28.0/Headers/gsc/GSContext.h Examining data/gnustep-back-0.28.0/Headers/gsc/GSFunction.h Examining data/gnustep-back-0.28.0/Headers/gsc/GSGState.h Examining data/gnustep-back-0.28.0/Headers/gsc/GSGStateOps.h Examining data/gnustep-back-0.28.0/Headers/gsc/GSStreamContext.h Examining data/gnustep-back-0.28.0/Headers/gsc/GSStreamGState.h Examining data/gnustep-back-0.28.0/Headers/gsc/gscolors.h Examining data/gnustep-back-0.28.0/Headers/opal/OpalContext.h Examining data/gnustep-back-0.28.0/Headers/opal/OpalFaceInfo.h Examining data/gnustep-back-0.28.0/Headers/opal/OpalFontEnumerator.h Examining data/gnustep-back-0.28.0/Headers/opal/OpalFontInfo.h Examining data/gnustep-back-0.28.0/Headers/opal/OpalGState.h Examining data/gnustep-back-0.28.0/Headers/opal/OpalSurface.h Examining data/gnustep-back-0.28.0/Headers/win32/WIN32Geometry.h Examining data/gnustep-back-0.28.0/Headers/win32/WIN32OpenGL.h Examining data/gnustep-back-0.28.0/Headers/win32/WIN32Server.h Examining data/gnustep-back-0.28.0/Headers/winlib/WIN32Context.h Examining data/gnustep-back-0.28.0/Headers/winlib/WIN32FontEnumerator.h Examining data/gnustep-back-0.28.0/Headers/winlib/WIN32FontInfo.h Examining data/gnustep-back-0.28.0/Headers/winlib/WIN32GState.h Examining data/gnustep-back-0.28.0/Headers/x11/StdCmap.h Examining data/gnustep-back-0.28.0/Headers/x11/XGDragView.h Examining data/gnustep-back-0.28.0/Headers/x11/XGGeneric.h Examining data/gnustep-back-0.28.0/Headers/x11/XGInputServer.h Examining data/gnustep-back-0.28.0/Headers/x11/XGOpenGL.h Examining data/gnustep-back-0.28.0/Headers/x11/XGServer.h Examining data/gnustep-back-0.28.0/Headers/x11/XGServerWindow.h Examining data/gnustep-back-0.28.0/Headers/x11/XWindowBuffer.h Examining data/gnustep-back-0.28.0/Headers/x11/wraster.h Examining data/gnustep-back-0.28.0/Headers/x11/xdnd.h Examining data/gnustep-back-0.28.0/Headers/xdps/NSDPSContext.h Examining data/gnustep-back-0.28.0/Headers/xlib/GSXftFontInfo.h Examining data/gnustep-back-0.28.0/Headers/xlib/XGContext.h Examining data/gnustep-back-0.28.0/Headers/xlib/XGFontSetFontInfo.h Examining data/gnustep-back-0.28.0/Headers/xlib/XGGState.h Examining data/gnustep-back-0.28.0/Headers/xlib/XGGeometry.h Examining data/gnustep-back-0.28.0/Headers/xlib/XGPrivate.h Examining data/gnustep-back-0.28.0/Source/art/ARTGState.h Examining data/gnustep-back-0.28.0/Source/art/FTFaceInfo.h Examining data/gnustep-back-0.28.0/Source/art/FTFontEnumerator.h Examining data/gnustep-back-0.28.0/Source/art/blit.h Examining data/gnustep-back-0.28.0/Source/art/ftfont.h Examining data/gnustep-back-0.28.0/Source/gsc/gscolors.c Examining data/gnustep-back-0.28.0/Source/x11/context.c Examining data/gnustep-back-0.28.0/Source/x11/convert.c Examining data/gnustep-back-0.28.0/Source/x11/raster.c Examining data/gnustep-back-0.28.0/Source/x11/scale.c Examining data/gnustep-back-0.28.0/Source/x11/wrasterP.h Examining data/gnustep-back-0.28.0/Source/x11/xdnd.c Examining data/gnustep-back-0.28.0/Source/x11/xutil.c Examining data/gnustep-back-0.28.0/Source/xdps/AFMFileFontInfo.h Examining data/gnustep-back-0.28.0/Source/xdps/parseAFM.c Examining data/gnustep-back-0.28.0/Source/xdps/parseAFM.h FINAL RESULTS: data/gnustep-back-0.28.0/Source/x11/context.c:517:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(varname, "%s%i", var, scr); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:281: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). strcpy(gfi->afmVersion, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:289: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). strcpy(gfi->fontName, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:295: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). strcpy(gfi->encodingScheme, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:300: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). strcpy(gfi->fullName, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:305: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). strcpy(gfi->familyName, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:310: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). strcpy(gfi->weight, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:335: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). strcpy(gfi->version, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:340: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). strcpy(gfi->notice, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:555:17: [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(temp->name, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:577:17: [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((*tail)->succ, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:580:17: [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((*tail)->lig, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:771:25: [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(fi->pkd[pos].name1, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:775:25: [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(fi->pkd[pos].name2, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:794:25: [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(fi->pkd[pos].name1, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:798:25: [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(fi->pkd[pos].name2, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:907:25: [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(fi->ccd[pos].ccName, keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:927:25: [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(fi->ccd[pos].pieces[j].pccName, keyword); data/gnustep-back-0.28.0/Source/x11/context.c:518:9: [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. p = getenv(varname); data/gnustep-back-0.28.0/Source/x11/context.c:520:6: [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. p = getenv(var); data/gnustep-back-0.28.0/Headers/gsc/GSGStateOps.h:156: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. : (const unsigned char *const [5]) data; data/gnustep-back-0.28.0/Headers/xlib/XGPrivate.h:96:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char * data_planes[5], data/gnustep-back-0.28.0/Source/art/ARTGState.h:53: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. unsigned char fill_color[4],stroke_color[4]; data/gnustep-back-0.28.0/Source/x11/context.c:70: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 *tmp[2]; data/gnustep-back-0.28.0/Source/x11/context.c:515: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 varname[64]; data/gnustep-back-0.28.0/Source/x11/raster.c:137: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(new_image->data, image->data, data/gnustep-back-0.28.0/Source/x11/raster.c:173: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(&new_image->data[i*line_size], data/gnustep-back-0.28.0/Source/x11/raster.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(image->data, src->data, image->height*image->width*3); data/gnustep-back-0.28.0/Source/x11/raster.c:350: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(d, s, width*3); data/gnustep-back-0.28.0/Source/x11/raster.c:526: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(d, s+tx*4, w); data/gnustep-back-0.28.0/Source/x11/raster.c:529: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(d, s+tx*3, w); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:326:43: [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). gfi->underlinePosition = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:330:47: [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). gfi->underlineThickness = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:344:41: [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). gfi->fontBBox.llx = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:346:41: [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). gfi->fontBBox.lly = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:348:41: [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). gfi->fontBBox.urx = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:350:41: [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). gfi->fontBBox.ury = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:354:38: [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). gfi->capHeight = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:358:36: [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). gfi->xHeight = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:362:38: [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). gfi->descender = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:366:37: [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). gfi->ascender = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:451:27: [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). pos = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:536: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). temp->code = atoi(token(fp)); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:546:28: [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). temp->wx = atoi(token(fp)); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:547:28: [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). temp->wy = atoi(token(fp)); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:550:28: [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). temp->wx = atoi(token(fp)); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:558:38: [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). temp->charBBox.llx = atoi(token(fp)); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:559:38: [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). temp->charBBox.lly = atoi(token(fp)); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:560:38: [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). temp->charBBox.urx = atoi(token(fp)); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:561:38: [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). temp->charBBox.ury = atoi(token(fp)); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:665:47: [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). fi->tkd[pos].degree = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:777:45: [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). fi->pkd[pos].xamt = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:779:47: [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). fi->pkd[pos++].yamt = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:800:47: [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). fi->pkd[pos++].xamt = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:909:52: [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). fi->ccd[pos].numOfPieces = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:929:57: [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). fi->ccd[pos].pieces[j].deltax = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:931:59: [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). fi->ccd[pos].pieces[j++].deltay = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:1026:29: [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). (*fi)->numOfChars = atoi(token(fp)); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:1078:42: [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). (*fi)->numOfTracks = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:1093:41: [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). (*fi)->numOfPairs = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:1108:41: [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). (*fi)->numOfComps = atoi(keyword); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:136:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ch = fgetc(stream)) == ' ' || ch == lineterm || ch == '\r' || data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:144:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(stream); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:169:18: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((ch = fgetc(stream)) == ' ' || ch == '\t' ); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:175:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = fgetc(stream); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:280:55: [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). gfi->afmVersion = (char *) malloc(strlen(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:288:53: [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). gfi->fontName = (char *) malloc(strlen(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:294:29: [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(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:299:53: [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). gfi->fullName = (char *) malloc(strlen(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:304:55: [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). gfi->familyName = (char *) malloc(strlen(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:309:51: [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). gfi->weight = (char *) malloc(strlen(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:334:52: [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). gfi->version = (char *) malloc(strlen(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:339:51: [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). gfi->notice = (char *) malloc(strlen(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:554:46: [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). temp->name = (char *) malloc(strlen(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:576:49: [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). (*tail)->succ = (char *) malloc(strlen(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:579:48: [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). (*tail)->lig = (char *) malloc(strlen(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:770:36: [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(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:774:36: [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(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:793:36: [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(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:797:36: [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(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:906:36: [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(keyword) + 1); data/gnustep-back-0.28.0/Source/xdps/parseAFM.c:926:40: [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(keyword) + 1); ANALYSIS SUMMARY: Hits = 82 Lines analyzed = 11190 in approximately 0.36 seconds (30957 lines/second) Physical Source Lines of Code (SLOC) = 6717 Hits@level = [0] 16 [1] 21 [2] 41 [3] 2 [4] 18 [5] 0 Hits@level+ = [0+] 98 [1+] 82 [2+] 61 [3+] 20 [4+] 18 [5+] 0 Hits/KSLOC@level+ = [0+] 14.5898 [1+] 12.2078 [2+] 9.08144 [3+] 2.97752 [4+] 2.67977 [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.