Task #971 - added.err
back to task #971download
Error: CPPCHECK_WARNING: pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/libredirect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c: scope_hint: In function ‘list_restore_filedescriptor’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:100:64: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1297:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1297:5: note: in expansion of macro ‘READ_ERRCHECK’ /usr/include/arpa/inet.h:22: included_from: Included from here. pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:39: included_from: Included from here. pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1305:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1305:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1307:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1311:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1316:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1320:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1324:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1328:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:98:74: note: in definition of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1342:17: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1297:5: note: in expansion of macro ‘READ_ERRCHECK’ # 98| if (read(fd, msgbuf, msglen) != msglen) { \ # 99| /*errno = EPROTO;*/ \ # 100|-> return -1; \ # 101| } \ # 102| } while (0); Error: GCC_ANALYZER_WARNING (CWE-401): pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1349:23: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1297:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1305:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1305:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1307:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1311:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1316:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1320:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1324:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1328:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1352:17: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1352:17: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c: scope_hint: In function ‘list_restore_filedescriptor’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c: scope_hint: In function ‘list_restore_filedescriptor’ # 1347| /* copy verbatim into memory */ # 1348| for (cnt = 0; cnt < header.numels; cnt++) { # 1349|-> buf = malloc(header.elemlen); # 1350| if (NULL == buf) # 1351| return -1; Error: CLANG_WARNING: pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1357:22: warning[unix.Malloc]: Potential leak of memory pointed to by 'buf' # 1355| totmemorylen = header.numels * header.elemlen; # 1356| } # 1357|-> totreadlen = header.numels * header.elemlen; # 1358| } else { # 1359| /* elements have variable size. Each element is preceded by its size */ Error: GCC_ANALYZER_WARNING (CWE-401): pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1376:23: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1297:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1305:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1305:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1307:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1311:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1316:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1320:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1324:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1328:5: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1375:17: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1375:17: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1379:17: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1379:17: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c: scope_hint: In function ‘list_restore_filedescriptor’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c: scope_hint: In function ‘list_restore_filedescriptor’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1375:17: note: in expansion of macro ‘READ_ERRCHECK’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/simclist.c:1375:17: note: in expansion of macro ‘READ_ERRCHECK’ # 1374| for (cnt = 0; cnt < header.numels; cnt++) { # 1375| READ_ERRCHECK(fd, & elsize, sizeof(elsize)); # 1376|-> buf = malloc(elsize); # 1377| if (NULL == buf) # 1378| return -1; Error: CPPCHECK_WARNING: pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/spy/libpcscspy.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches. Error: GCC_ANALYZER_WARNING (CWE-401): pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/winscard_clnt.c: scope_hint: In function ‘SCardAddHandle’ pcsc-lite-2.2.3-build/pcsc-lite-2.2.3/src/winscard_clnt.c:3445:12: warning[-Wanalyzer-malloc-leak]: leak of ‘newChannelMap’ # 3443| # 3444| lrv = list_append(¤tContextMap->channelMapList, newChannelMap); # 3445|-> if (lrv < 0) # 3446| { # 3447| free(newChannelMap->readerName);