Task #92215 - fixed.err
back to task #92215download
Error: GCC_ANALYZER_WARNING (CWE-401):
zstd-1.5.7/lib//compress/../common/allocations.h:53:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<return-value>.start’
zstd-1.5.7/lib//compress/zstdmt_compress.c:1403:15: enter_function: entry to ‘ZSTDMT_createCompressionJob’
zstd-1.5.7/lib//compress/zstdmt_compress.c:1408:8: branch_false: following ‘false’ branch...
zstd-1.5.7/lib//compress/zstdmt_compress.c:1414:10: branch_false: ...to here
zstd-1.5.7/lib//compress/zstdmt_compress.c:1414:8: branch_true: following ‘true’ branch...
zstd-1.5.7/lib//compress/zstdmt_compress.c:1415:21: branch_true: ...to here
zstd-1.5.7/lib//compress/zstdmt_compress.c:1443:12: branch_true: following ‘true’ branch (when ‘endOp != 2’)...
zstd-1.5.7/lib//compress/zstdmt_compress.c:1444:42: branch_true: ...to here
zstd-1.5.7/lib//compress/zstdmt_compress.c:1455:12: branch_true: following ‘true’ branch (when ‘srcSize == 0’)...
zstd-1.5.7/lib//compress/zstdmt_compress.c:1455:14: branch_true: ...to here
zstd-1.5.7/lib//compress/zstdmt_compress.c:1455:14: branch_true: following ‘true’ branch...
zstd-1.5.7/lib//compress/zstdmt_compress.c:1459:13: branch_true: ...to here
zstd-1.5.7/lib//compress/zstdmt_compress.c:1459:13: call_function: calling ‘ZSTDMT_writeLastEmptyBlock’ from ‘ZSTDMT_createCompressionJob’
# 51| ZSTD_free(ptr);
# 52| }
# 53|-> }
# 54|
# 55| #endif /* ZSTD_ALLOCATIONS_H */
Error: GCC_ANALYZER_WARNING (CWE-401):
zstd-1.5.7/lib//compress/zstdmt_compress.c:226:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<return-value>.start’
zstd-1.5.7/lib//compress/zstdmt_compress.c:1403:15: enter_function: entry to ‘ZSTDMT_createCompressionJob’
zstd-1.5.7/lib//compress/zstdmt_compress.c:1408:8: branch_false: following ‘false’ branch...
zstd-1.5.7/lib//compress/zstdmt_compress.c:1414:10: branch_false: ...to here
zstd-1.5.7/lib//compress/zstdmt_compress.c:1414:8: branch_true: following ‘true’ branch...
zstd-1.5.7/lib//compress/zstdmt_compress.c:1415:21: branch_true: ...to here
zstd-1.5.7/lib//compress/zstdmt_compress.c:1443:12: branch_false: following ‘false’ branch (when ‘endOp == 2’)...
zstd-1.5.7/lib//compress/zstdmt_compress.c:1448:13: branch_false: ...to here
zstd-1.5.7/lib//compress/zstdmt_compress.c:1450:16: branch_false: following ‘false’ branch...
zstd-1.5.7/lib//compress/zstdmt_compress.c:1455:12: branch_false: ...to here
zstd-1.5.7/lib//compress/zstdmt_compress.c:1455:12: branch_true: following ‘true’ branch (when ‘srcSize == 0’)...
zstd-1.5.7/lib//compress/zstdmt_compress.c:1455:14: branch_true: ...to here
zstd-1.5.7/lib//compress/zstdmt_compress.c:1455:14: branch_true: following ‘true’ branch...
zstd-1.5.7/lib//compress/zstdmt_compress.c:1459:13: branch_true: ...to here
zstd-1.5.7/lib//compress/zstdmt_compress.c:1459:13: call_function: calling ‘ZSTDMT_writeLastEmptyBlock’ from ‘ZSTDMT_createCompressionJob’
# 224| return buffer;
# 225| }
# 226|-> }
# 227|
# 228| #if ZSTD_RESIZE_SEQPOOL
Error: GCC_ANALYZER_WARNING (CWE-835):
zstd-1.5.7/lib//compress/zstdmt_compress.c:1499:27: warning[-Wanalyzer-infinite-loop]: infinite loop
zstd-1.5.7/lib//compress/zstdmt_compress.c:1499:27: danger: infinite loop here
zstd-1.5.7/lib//compress/zstdmt_compress.c:1499:16: branch_true: if it ever follows ‘true’ branch, it will always do so...
zstd-1.5.7/lib//compress/zstdmt_compress.c:1500:17: branch_true: ...to here
zstd-1.5.7/lib//compress/zstdmt_compress.c:1500:16: branch_false: if it ever follows ‘false’ branch, it will always do so...
zstd-1.5.7/lib//compress/zstdmt_compress.c:1500:16: branch_false: ...to here
# 1497| && (mtctx->doneJobID < mtctx->nextJobID) ) {
# 1498| assert(mtctx->jobs[wJobID].dstFlushed <= mtctx->jobs[wJobID].cSize);
# 1499|-> while (mtctx->jobs[wJobID].dstFlushed == mtctx->jobs[wJobID].cSize) { /* nothing to flush */
# 1500| if (mtctx->jobs[wJobID].consumed == mtctx->jobs[wJobID].src.size) {
# 1501| DEBUGLOG(5, "job %u is completely consumed (%u == %u) => don't wait for cond, there will be none",
Error: GCC_ANALYZER_WARNING (CWE-835):
zstd-1.5.7/lib//dictBuilder/cover.c:914:10: warning[-Wanalyzer-infinite-loop]: infinite loop
zstd-1.5.7/lib//dictBuilder/cover.c:914:10: danger: infinite loop here
zstd-1.5.7/lib//dictBuilder/cover.c:914:10: branch_true: if it ever follows ‘true’ branch, it will always do so...
zstd-1.5.7/lib//dictBuilder/cover.c:914:10: branch_true: ...to here
# 912| }
# 913| ZSTD_pthread_mutex_lock(&best->mutex);
# 914|-> while (best->liveJobs != 0) {
# 915| ZSTD_pthread_cond_wait(&best->cond, &best->mutex);
# 916| }
Error: GCC_ANALYZER_WARNING (CWE-401):
zstd-1.5.7/lib//dictBuilder/cover.c:976:12: warning[-Wanalyzer-malloc-leak]: leak of ‘*best.dict’
zstd-1.5.7/lib//dictBuilder/cover.c:1122:13: enter_function: entry to ‘COVER_tryParameters’
zstd-1.5.7/lib//dictBuilder/cover.c:1135:8: call_function: calling ‘COVER_map_init’ from ‘COVER_tryParameters’
zstd-1.5.7/lib//dictBuilder/cover.c:1135:8: return_function: returning to ‘COVER_tryParameters’ from ‘COVER_map_init’
zstd-1.5.7/lib//dictBuilder/cover.c:1135:6: branch_true: following ‘true’ branch...
zstd-1.5.7/lib//dictBuilder/cover.c:1136:5: branch_true: ...to here
zstd-1.5.7/lib//dictBuilder/cover.c:1160:3: call_function: calling ‘COVER_best_finish’ from ‘COVER_tryParameters’
# 974| }
# 975| best->dict = malloc(dictSize);
# 976|-> if (!best->dict) {
# 977| best->compressedSize = ERROR(GENERIC);
# 978| best->dictSize = 0;
Error: GCC_ANALYZER_WARNING (CWE-401):
zstd-1.5.7/programs/util.c:896:17: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
zstd-1.5.7/programs/util.c:1339:6: enter_function: entry to ‘UTIL_expandFNT’
zstd-1.5.7/programs/util.c:1341:36: call_function: calling ‘UTIL_createExpandedFNT’ from ‘UTIL_expandFNT’
# 894| int nbFiles = 0;
# 895|
# 896|-> if (!(dir = opendir(dirName))) {
# 897| UTIL_DISPLAYLEVEL(1, "Cannot open directory '%s': %s\n", dirName, strerror(errno));
# 898| return 0;
Error: GCC_ANALYZER_WARNING (CWE-401):
zstd-1.5.7/programs/util.c:903:21: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
zstd-1.5.7/programs/util.c:1339:6: enter_function: entry to ‘UTIL_expandFNT’
zstd-1.5.7/programs/util.c:1341:36: call_function: calling ‘UTIL_createExpandedFNT’ from ‘UTIL_expandFNT’
# 901| dirLength = strlen(dirName);
# 902| errno = 0;
# 903|-> while ((entry = readdir(dir)) != NULL) {
# 904| char* path;
# 905| size_t fnameLength, pathLength;
Error: GCC_ANALYZER_WARNING (CWE-401):
zstd-1.5.7/programs/util.c:903:21: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(dirName)’
zstd-1.5.7/programs/util.c:1339:6: enter_function: entry to ‘UTIL_expandFNT’
zstd-1.5.7/programs/util.c:1341:36: call_function: calling ‘UTIL_createExpandedFNT’ from ‘UTIL_expandFNT’
# 901| dirLength = strlen(dirName);
# 902| errno = 0;
# 903|-> while ((entry = readdir(dir)) != NULL) {
# 904| char* path;
# 905| size_t fnameLength, pathLength;
Error: GCC_ANALYZER_WARNING (CWE-401):
zstd-1.5.7/programs/util.c:910:22: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
zstd-1.5.7/programs/util.c:1339:6: enter_function: entry to ‘UTIL_expandFNT’
zstd-1.5.7/programs/util.c:1341:36: call_function: calling ‘UTIL_createExpandedFNT’ from ‘UTIL_expandFNT’
# 908| fnameLength = strlen(entry->d_name);
# 909| path = (char*) malloc(dirLength + fnameLength + 2);
# 910|-> if (!path) { closedir(dir); return 0; }
# 911| memcpy(path, dirName, dirLength);
# 912|