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/quesoglc-0.7.2/src/ocontext.c Examining data/quesoglc-0.7.2/src/oarray.h Examining data/quesoglc-0.7.2/src/global.c Examining data/quesoglc-0.7.2/src/measure.c Examining data/quesoglc-0.7.2/src/database.c Examining data/quesoglc-0.7.2/src/context.c Examining data/quesoglc-0.7.2/src/oarray.c Examining data/quesoglc-0.7.2/src/omaster.h Examining data/quesoglc-0.7.2/src/ocharmap.c Examining data/quesoglc-0.7.2/src/unicode.c Examining data/quesoglc-0.7.2/src/font.c Examining data/quesoglc-0.7.2/src/glew.c Examining data/quesoglc-0.7.2/src/transform.c Examining data/quesoglc-0.7.2/src/misc.c Examining data/quesoglc-0.7.2/src/render.c Examining data/quesoglc-0.7.2/src/ofont.h Examining data/quesoglc-0.7.2/src/oglyph.h Examining data/quesoglc-0.7.2/src/fribidi/fribidi_mirroring.c Examining data/quesoglc-0.7.2/src/fribidi/fribidi_unicode.h Examining data/quesoglc-0.7.2/src/fribidi/fribidi_types.h Examining data/quesoglc-0.7.2/src/fribidi/fribidi_char_type.c Examining data/quesoglc-0.7.2/src/fribidi/fribidi_types.c Examining data/quesoglc-0.7.2/src/fribidi/fribidi.h Examining data/quesoglc-0.7.2/src/fribidi/fribidi.c Examining data/quesoglc-0.7.2/src/scalable.c Examining data/quesoglc-0.7.2/src/ofacedesc.h Examining data/quesoglc-0.7.2/src/oglyph.c Examining data/quesoglc-0.7.2/src/ocharmap.h Examining data/quesoglc-0.7.2/src/except.c Examining data/quesoglc-0.7.2/src/omaster.c Examining data/quesoglc-0.7.2/src/except.h Examining data/quesoglc-0.7.2/src/ofont.c Examining data/quesoglc-0.7.2/src/texture.c Examining data/quesoglc-0.7.2/src/ocontext.h Examining data/quesoglc-0.7.2/src/master.c Examining data/quesoglc-0.7.2/src/texture.h Examining data/quesoglc-0.7.2/src/ofacedesc.c Examining data/quesoglc-0.7.2/examples/tutorial2.c Examining data/quesoglc-0.7.2/examples/tutorial.c Examining data/quesoglc-0.7.2/include/internal.h Examining data/quesoglc-0.7.2/include/GL/glc.h Examining data/quesoglc-0.7.2/tests/test6.c Examining data/quesoglc-0.7.2/tests/testrender.c Examining data/quesoglc-0.7.2/tests/test2.c Examining data/quesoglc-0.7.2/tests/testfont.c Examining data/quesoglc-0.7.2/tests/test16.c Examining data/quesoglc-0.7.2/tests/test11.c Examining data/quesoglc-0.7.2/tests/testcontex.c Examining data/quesoglc-0.7.2/tests/test5.c Examining data/quesoglc-0.7.2/tests/testmaster.c Examining data/quesoglc-0.7.2/tests/test17.c Examining data/quesoglc-0.7.2/tests/test4.c Examining data/quesoglc-0.7.2/tests/test7.c Examining data/quesoglc-0.7.2/tests/test14.c Examining data/quesoglc-0.7.2/tests/test1.c Examining data/quesoglc-0.7.2/tests/test12.c Examining data/quesoglc-0.7.2/tests/test3.c Examining data/quesoglc-0.7.2/tests/test15.c Examining data/quesoglc-0.7.2/tests/test10.c Examining data/quesoglc-0.7.2/tests/test9.c Examining data/quesoglc-0.7.2/tests/test13.c Examining data/quesoglc-0.7.2/tests/test8.c FINAL RESULTS: data/quesoglc-0.7.2/src/context.c:821:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char*)__glcExtensions, __glcExtensions1); data/quesoglc-0.7.2/src/context.c:823:2: [4] (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). strcat((char*)__glcExtensions, __glcExtensions2); data/quesoglc-0.7.2/src/context.c:824:7: [4] (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). strcat((char*)__glcExtensions, __glcExtensions3); data/quesoglc-0.7.2/src/fribidi/fribidi.c:45:42: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define DBG(s) do { if (fribidi_debug) { fprintf(stderr, s); } } while (0) data/quesoglc-0.7.2/src/fribidi/fribidi.c:46:46: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define DBG2(s, t) do { if (fribidi_debug) { fprintf(stderr, s, t); } } while (0) data/quesoglc-0.7.2/src/glew.c:84: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(symbolName+1, (const char*)name); data/quesoglc-0.7.2/src/master.c:477:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access((const char *)inCatalog, R_OK) < 0) { data/quesoglc-0.7.2/src/unicode.c:447:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char*)string, (const char*)inString); data/quesoglc-0.7.2/tests/test17.c:38:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(#func"() Unexpected error : 0x%x\n", (int)err); \ data/quesoglc-0.7.2/tests/test17.c:43:5: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(#func"Error is not GLC_NONE but : 0x%x\n", (int)err); \ data/quesoglc-0.7.2/tests/test4.c:33:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(#func"() Unexpected error : 0x%x\n", (int)err); \ data/quesoglc-0.7.2/tests/test4.c:38:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(#func"Error is not GLC_NONE but : 0x%x\n", (int)err); \ data/quesoglc-0.7.2/src/global.c:92:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&__glcCommonArea.section); data/quesoglc-0.7.2/src/global.c:265:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&__glcCommonArea.section); data/quesoglc-0.7.2/src/ocontext.c:273:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("GLC_CATALOG_LIST") || getenv("GLC_PATH")) { data/quesoglc-0.7.2/src/ocontext.c:273:37: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("GLC_CATALOG_LIST") || getenv("GLC_PATH")) { data/quesoglc-0.7.2/src/ocontext.c:277:44: [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. const GLCchar8 *separator = (GLCchar8*)getenv("GLC_LIST_SEPARATOR"); data/quesoglc-0.7.2/src/ocontext.c:298: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. if (getenv("GLC_CATALOG_LIST")) data/quesoglc-0.7.2/src/ocontext.c:300:33: [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. path = (GLCchar8*)_strdup(getenv("GLC_CATALOG_LIST")); data/quesoglc-0.7.2/src/ocontext.c:302:30: [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. path = (GLCchar8*)strdup(getenv("GLC_CATALOG_LIST")); data/quesoglc-0.7.2/src/ocontext.c:304:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. else if (getenv("GLC_PATH")) { data/quesoglc-0.7.2/src/ocontext.c:307:33: [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. path = (GLCchar8*)_strdup(getenv("GLC_PATH")); data/quesoglc-0.7.2/src/ocontext.c:309:32: [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. path = (GLCchar8*)strdup(getenv("GLC_PATH")); data/quesoglc-0.7.2/src/context.c:933: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(outVec, ctx->bitmapMatrix, 4 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/context.c:1434: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(&level->enableState, &ctx->enableState, sizeof(__GLCenableState)); data/quesoglc-0.7.2/src/context.c:1439: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(&level->renderState, &ctx->renderState, sizeof(__GLCrenderState)); data/quesoglc-0.7.2/src/context.c:1444: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(&level->stringState, &ctx->stringState, sizeof(__GLCstringState)); data/quesoglc-0.7.2/src/context.c:1491: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(&ctx->enableState, &level->enableState, sizeof(__GLCenableState)); data/quesoglc-0.7.2/src/context.c:1494: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(&ctx->renderState, &level->renderState, sizeof(__GLCrenderState)); data/quesoglc-0.7.2/src/context.c:1497: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(&ctx->stringState, &level->stringState, sizeof(__GLCstringState)); data/quesoglc-0.7.2/src/measure.c:280: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(outVec, vector, 4 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/measure.c:283: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(outVec, &vector[4], 8 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/measure.c:486: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(outVec, &measurementBuffer[inIndex][0], data/quesoglc-0.7.2/src/measure.c:490: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(outVec, &measurementBuffer[inIndex][4], data/quesoglc-0.7.2/src/measure.c:548: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(outVec, ctx->measurementStringBuffer, 4*sizeof(GLfloat)); data/quesoglc-0.7.2/src/measure.c:551: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(outVec, &ctx->measurementStringBuffer[4], 8*sizeof(GLfloat)); data/quesoglc-0.7.2/src/misc.c:254: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 buf[11]; data/quesoglc-0.7.2/src/oarray.c:115: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(This->data + This->length*This->elementSize, inValue, data/quesoglc-0.7.2/src/oarray.c:141: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(This->data + inRank*This->elementSize, inValue, This->elementSize); data/quesoglc-0.7.2/src/oarray.c:206: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(duplicate, This, sizeof(__GLCarray)); data/quesoglc-0.7.2/src/oarray.c:215: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(duplicate->data, This->data, This->allocated * This->elementSize); data/quesoglc-0.7.2/src/ofont.c:140: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(outVec, glyph->boundingBox, 4 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/ofont.c:166: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(glyph->boundingBox, outVec, 4 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/ofont.c:195: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(outVec, glyph->advance, 2 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/ofont.c:206: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(glyph->advance, outVec, 2 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/scalable.c:104: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(cp, vector, 2 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/scalable.c:118: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(cp, vector, 2 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/scalable.c:246: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(cp, vector, 2 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/scalable.c:260: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(cp, vector, 2 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/scalable.c:728: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(inGlyph->contours, GLC_ARRAY_DATA(rendererData.endContour), data/quesoglc-0.7.2/src/texture.c:516: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(buffer, data, inContext->atlasCount * 20 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/transform.c:111: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(ctx->bitmapMatrix, inMatrix, 4 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/transform.c:144: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(tempMatrix, ctx->bitmapMatrix, 4 * sizeof(GLfloat)); data/quesoglc-0.7.2/src/transform.c:253: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(ctx->bitmapMatrix+4, ctx->bitmapMatrix, 4*sizeof(GLfloat)); data/quesoglc-0.7.2/src/unicode.c:40: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. static char buffer[20]; data/quesoglc-0.7.2/src/unicode.c:210: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 buffer[GLC_OUT_OF_RANGE_LEN]; data/quesoglc-0.7.2/src/unicode.c:610: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(string, inString, length*sizeof(int)); data/quesoglc-0.7.2/src/unicode.c:735: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(string, inString, inCount*sizeof(int)); data/quesoglc-0.7.2/tests/test12.c:71: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 string[20]; data/quesoglc-0.7.2/src/context.c:465: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). length = strlen((const char*) catalog) + 1; data/quesoglc-0.7.2/src/context.c:470:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*)buffer, (const char*)catalog, length); data/quesoglc-0.7.2/src/context.c:817:15: [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). assert((strlen(__glcExtensions1) + strlen(__glcExtensions2) data/quesoglc-0.7.2/src/context.c:817:42: [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). assert((strlen(__glcExtensions1) + strlen(__glcExtensions2) data/quesoglc-0.7.2/src/context.c:818: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). + strlen(__glcExtensions3)) <= 256); data/quesoglc-0.7.2/src/glew.c:83:23: [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). symbolName = malloc(strlen((const char*)name) + 2); data/quesoglc-0.7.2/src/ocharmap.c:129:11: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (equal) { data/quesoglc-0.7.2/src/ofacedesc.c:131:9: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (equal) { data/quesoglc-0.7.2/src/omaster.c:204:9: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (equal) { data/quesoglc-0.7.2/src/omaster.c:317:9: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (equal) data/quesoglc-0.7.2/src/unicode.c:342: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). shift = __glcUtf8ToUcs1(utf8, buffer, strlen((const char*)utf8), data/quesoglc-0.7.2/src/unicode.c:362:38: [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). utf8 += __glcUtf8ToUcs1(utf8, ucs1, strlen((const char*)utf8), data/quesoglc-0.7.2/src/unicode.c:378: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). shift = __glcUtf8ToUcs2(utf8, buffer, strlen((const char*)utf8), data/quesoglc-0.7.2/src/unicode.c:398:38: [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). utf8 += __glcUtf8ToUcs2(utf8, ucs2, strlen((const char*)utf8), data/quesoglc-0.7.2/src/unicode.c:413:38: [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). shift = FcUtf8ToUcs4(utf8, &buffer, strlen((const char*)utf8)); data/quesoglc-0.7.2/src/unicode.c:434:37: [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). utf8 += FcUtf8ToUcs4(utf8, ucs4++, strlen((const char*)utf8)); data/quesoglc-0.7.2/src/unicode.c:444:14: [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). strlen((const char*)inString)+1); data/quesoglc-0.7.2/src/unicode.c:564:16: [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). length = strlen((const char*)ucs1); data/quesoglc-0.7.2/src/unicode.c:625:38: [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). shift = FcUtf8ToUcs4(utf8, &buffer, strlen((const char*)utf8)); data/quesoglc-0.7.2/src/unicode.c:644:37: [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). utf8 += FcUtf8ToUcs4(utf8, ucs4++, strlen((const char*)utf8)); data/quesoglc-0.7.2/src/unicode.c:757:37: [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). utf8 += FcUtf8ToUcs4(utf8, ucs4++, strlen((const char*)utf8)); data/quesoglc-0.7.2/tests/test6.c:148:33: [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). *inString = (GLCchar*)malloc((strlen(inStringUCS1)+1)*2); data/quesoglc-0.7.2/tests/test6.c:168:33: [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). *inString = (GLCchar*)malloc((strlen(inStringUCS1)+1)*4); data/quesoglc-0.7.2/tests/test6.c:706:7: [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). strlen(__glcExtensions)+1)*2) { data/quesoglc-0.7.2/tests/test6.c:715:7: [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). strlen(__glcRelease)+1)*2) { data/quesoglc-0.7.2/tests/test6.c:724:7: [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). strlen(__glcVendor)+1)*2) { data/quesoglc-0.7.2/tests/test6.c:738:7: [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). strlen(__glcExtensions)+1)*4) { data/quesoglc-0.7.2/tests/test6.c:747:7: [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). strlen(__glcRelease)+1)*4) { data/quesoglc-0.7.2/tests/test6.c:756:7: [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). strlen(__glcVendor)+1)*4) { data/quesoglc-0.7.2/tests/test7.c:66:45: [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). length = glcMeasureCountedString(GL_TRUE, strlen(string)-1, string); data/quesoglc-0.7.2/tests/test7.c:69:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((!length) || (length != (strlen(string)-1))) { data/quesoglc-0.7.2/tests/test7.c:71:38: [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). " (%d measured instead)\n", (int)strlen(string), length); data/quesoglc-0.7.2/tests/test7.c:87:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((!length) || (length != strlen(string))) { data/quesoglc-0.7.2/tests/test7.c:89:38: [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). " (%d measured instead)\n", (int)strlen(string), length); data/quesoglc-0.7.2/tests/test7.c:102:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = 0; i < strlen(string); i++) { ANALYSIS SUMMARY: Hits = 94 Lines analyzed = 23272 in approximately 0.65 seconds (35781 lines/second) Physical Source Lines of Code (SLOC) = 14621 Hits@level = [0] 331 [1] 35 [2] 36 [3] 11 [4] 12 [5] 0 Hits@level+ = [0+] 425 [1+] 94 [2+] 59 [3+] 23 [4+] 12 [5+] 0 Hits/KSLOC@level+ = [0+] 29.0678 [1+] 6.42911 [2+] 4.03529 [3+] 1.57308 [4+] 0.820737 [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.