brltty-6.6-17.fc41
List of Defects
Error: CPPCHECK_WARNING: [#def1]
brltty-6.6-build/brltty-6.6/minimal/Bindings/Lua/bindings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def2]
brltty-6.6-build/brltty-6.6/minimal/Bindings/Lua/bindings.c:460:37: warning[core.NullDereference]: Array access (from variable 'codes') results in a null pointer dereference
# 458| lua_newtable(L);
# 459| for (size_t i = 0; i < count; i += 1) {
# 460|-> lua_pushinteger(L, (lua_Integer)codes[i]);
# 461| lua_rawseti(L, -2, i + 1);
# 462| }
Error: CLANG_WARNING: [#def3]
brltty-6.6-build/brltty-6.6/minimal/Bindings/Lua/bindings.c:491:37: warning[core.NullDereference]: Array access (from variable 'codes') results in a null pointer dereference
# 489| lua_newtable(L);
# 490| for (size_t i = 0; i < count; i += 1) {
# 491|-> lua_pushinteger(L, (lua_Integer)codes[i]);
# 492| lua_rawseti(L, -2, i + 1);
# 493| }
Error: CPPCHECK_WARNING: [#def4]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Albatross/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def5]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-127): [#def6]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c:112: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c: scope_hint: In function ‘logVersion2’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c:1211:22: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c:1211:5: note: in expansion of macro ‘STR_PRINTF’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c: scope_hint: In function ‘logVersion2’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c: scope_hint: In function ‘logVersion2’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:62:32: note: in expansion of macro ‘STR_LEFT’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c:1217:5: note: in expansion of macro ‘STR_PRINTF’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:62:32: note: in expansion of macro ‘STR_LEFT’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c:1217:5: note: in expansion of macro ‘STR_PRINTF’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:62:32: note: in expansion of macro ‘STR_LEFT’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c:1217:5: note: in expansion of macro ‘STR_PRINTF’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c:1211:5: note: in expansion of macro ‘STR_PRINTF’
# └────────────────────────────────┘
# ^
# 1209|
# 1210| while (1) {
# 1211|-> STR_PRINTF("%u", *byte);
# 1212| if (byte == overlay.bytes) break;
# 1213|
Error: GCC_ANALYZER_WARNING (CWE-124): [#def7]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c:1214:11: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c: scope_hint: In function ‘logVersion2’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c: scope_hint: In function ‘logVersion2’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:62:32: note: in expansion of macro ‘STR_LEFT’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c:1217:5: note: in expansion of macro ‘STR_PRINTF’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:62:32: note: in expansion of macro ‘STR_LEFT’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c:1217:5: note: in expansion of macro ‘STR_PRINTF’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:62:32: note: in expansion of macro ‘STR_LEFT’
brltty-6.6-build/brltty-6.6/minimal/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Alva/braille.c:1217:5: note: in expansion of macro ‘STR_PRINTF’
# 1212| if (byte == overlay.bytes) break;
# 1213|
# 1214|-> *byte = 0;
# 1215| if (!overlay.u32) break;
# 1216|
Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/B2G/braille.c: scope_hint: In function ‘openBrailleDevice’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/B2G/braille.c:284:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/braille0", 1)’
# 282| static int
# 283| openBrailleDevice (BrailleDisplay *brl) {
# 284|-> if ((brl->data->braille.fileDescriptor = open(BRAILLE_DEVICE_PATH, O_WRONLY)) != -1) {
# 285| return 1;
# 286| } else {
Error: CPPCHECK_WARNING: [#def9]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Baum/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/BrailleLite/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def11]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/BrailleMemo/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def12]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/BrlAPI/braille.c:207:5: warning[core.VLASize]: Declared variable-length array (VLA) has zero size
# 205| }
# 206|
# 207|-> unsigned char and[displaySize];
# 208| memset(and, 0, sizeof(and));
# 209| arguments.andMask = and;
Error: CPPCHECK_WARNING: [#def13]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/DotPad/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/DotPad/braille.c: scope_hint: In function ‘makeArrays’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/DotPad/braille.c:396:6: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)*brl_43(D)->data.display.externalRows, (long unsigned int)*brl_43(D)->data.display.externalColumns)’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/DotPad/braille.c: scope_hint: In function ‘makeArrays’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/DotPad/braille.c: scope_hint: In function ‘makeArrays’
# 394| static int
# 395| makeArrays (BrailleDisplay *brl) {
# 396|-> if ((brl->data->arrays.externalCells = calloc(brl->data->display.externalRows, brl->data->display.externalColumns))) {
# 397| if ((brl->data->arrays.internalCells = calloc(brl->data->display.internalRows, brl->data->display.internalColumns))) {
# 398| if ((brl->data->arrays.externalRows = malloc(ARRAY_SIZE(brl->data->arrays.externalRows, brl->data->display.externalRows)))) {
Error: GCC_ANALYZER_WARNING (CWE-688): [#def15]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/DotPad/braille.c: scope_hint: In function ‘writeRequest’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/DotPad/braille.c:499:23: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/DotPad/braille.c:21: included_from: Included from here.
/usr/include/string.h:400:14: note: argument 2 of ‘mempcpy’ must be non-null
# 497| packet.fields.seq = 0;
# 498|
# 499|-> uint8_t *checksum = mempcpy(packet.fields.data, data, size);
# 500| uint16_t length = (checksum - &packet.fields.destination) + 1;
# 501| putUint16(packet.fields.length, length);
Error: CLANG_WARNING: [#def16]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/DotPad/braille.c:499:23: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 497| packet.fields.seq = 0;
# 498|
# 499|-> uint8_t *checksum = mempcpy(packet.fields.data, data, size);
# 500| uint16_t length = (checksum - &packet.fields.destination) + 1;
# 501| putUint16(packet.fields.length, length);
Error: GCC_ANALYZER_WARNING (CWE-121): [#def17]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/DotPad/braille.c: scope_hint: In function ‘updateKeyGroup’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/DotPad/braille.c:867:24: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
# 865|
# 866| while (dataSize < arraySize) {
# 867|-> data[dataSize++] = 0;
# 868| }
# 869|
Error: CLANG_WARNING: [#def18]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EcoBraille/braille.c:269:3: warning[deadcode.DeadStores]: Value stored to 'byte' is never read
# 267|
# 268| /* Make main info to rawdata */
# 269|-> byte = translateOutputCells(byte, brl->buffer, brl->textColumns);
# 270|
# 271| /* Write to Braille Display */
Error: CLANG_WARNING: [#def19]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EcoBraille/braille.c:297:7: warning[deadcode.DeadStores]: Although the value stored to 'bytes' is used in the enclosing expression, the value is never actually read from 'bytes'
# 295|
# 296| /* Read info from Braille Line */
# 297|-> if((bytes = serialReadData(serialDevice, buff, 18, 0, 0)) >= 9){
# 298|
# 299| #ifdef DEBUG
Error: CPPCHECK_WARNING: [#def20]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eu_clio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def21]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eu_clio.c:411:26: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 409| for (i=1; i<offset; i+=1)
# 410| {
# 411|-> parity ^= buffer[i];
# 412| }
# 413| }
Error: CLANG_WARNING: [#def22]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eu_clio.c:431:32: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 429| }
# 430|
# 431|-> if (buffer[--offset] == inputPacketNumber)
# 432| {
# 433| offset = 0;
Error: CLANG_WARNING: [#def23]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eu_clio.c:431:32: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value due to array index out of bounds
# 429| }
# 430|
# 431|-> if (buffer[--offset] == inputPacketNumber)
# 432| {
# 433| offset = 0;
Error: CLANG_WARNING: [#def24]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eu_clio.c:580:24: warning[core.NullDereference]: Dereference of null pointer
# 578|
# 579| {
# 580|-> wchar_t wc = *source++;
# 581| if (!iswLatin1(wc)) wc = '?';
# 582| *target++ = wc;
Error: CPPCHECK_WARNING: [#def25]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_brl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_brl.c: scope_hint: In function ‘brl_message’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:200:8: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer’
# 198| unsigned char* p = buffer;
# 199|
# 200|-> *p++ = 'D';
# 201| *p++ = 'M';
# 202| while (*q)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_brl.c: scope_hint: In function ‘showbrfile’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:224:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
# 222| unsigned char* str = malloc(256); /* the string to display */
# 223|
# 224|-> buf[0] = '\005';
# 225| buf[1] = 'F';
# 226| buf[2] = 'N';
Error: CLANG_WARNING: [#def28]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:241:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'str'
# 239| if (!strncmp((char*)buf, "\003FE", 3))
# 240| {
# 241|-> env->brfilenum--;
# 242| return 0;
# 243| }
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:242:14: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
# 240| {
# 241| env->brfilenum--;
# 242|-> return 0;
# 243| }
# 244| strcpy((char*)str, env->brpc ? "BR>PC " : "PC>BR ");
Error: GCC_ANALYZER_WARNING (CWE-688): [#def30]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_brl.c:244:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘str’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 242| return 0;
# 243| }
# 244|-> strcpy((char*)str, env->brpc ? "BR>PC " : "PC>BR ");
# 245| strncat((char*)str, ((char*)&(buf[6])), buf[0] - 5);
# 246| strcat((char*)str, ".");
Error: CPPCHECK_WARNING: [#def31]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘dos2unix’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:53:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tmpmap’
# 51| }
# 52| for (i = 0; i < size; i++)
# 53|-> tmpmap[i] = (*map)[i];
# 54| p = tmpmap;
# 55| p2 = tmpmap2;
Error: CLANG_WARNING: [#def33]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:53:15: warning[core.NullDereference]: Array access (from variable 'tmpmap') results in a null pointer dereference
# 51| }
# 52| for (i = 0; i < size; i++)
# 53|-> tmpmap[i] = (*map)[i];
# 54| p = tmpmap;
# 55| p2 = tmpmap2;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:61:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 59| for (i = 0; i < newsize; i++)
# 60| {
# 61|-> (*map)[i] = tmpmap2[i];
# 62| }
# 63| free(tmpmap);
Error: CLANG_WARNING: [#def35]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:61:19: warning[core.NullDereference]: Array access (from variable 'tmpmap2') results in a null pointer dereference
# 59| for (i = 0; i < newsize; i++)
# 60| {
# 61|-> (*map)[i] = tmpmap2[i];
# 62| }
# 63| free(tmpmap);
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:81:14: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
# 79| {
# 80| perror("open");
# 81|-> return 0;
# 82| }
# 83| fstat(fd, &st);
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘k2txt’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:81:14: warning[-Wanalyzer-malloc-leak]: leak of ‘newmap’
# 79| {
# 80| perror("open");
# 81|-> return 0;
# 82| }
# 83| fstat(fd, &st);
Error: COMPILER_WARNING (CWE-252): [#def38]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘k2txt’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:87:3: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 87 | read(fd, map, size);
# | ^~~~~~~~~~~~~~~~~~~
# 85| map = malloc(size + 1);
# 86| newmap = malloc(size + 1);
# 87|-> read(fd, map, size);
# 88| map[size] = 0;
# 89| close(fd);
Error: CLANG_WARNING: [#def39]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:92:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'newmap'
# 90| if ((fd = open(destfile, O_WRONLY | O_CREAT | O_TRUNC, 0600)) == -1)
# 91| {
# 92|-> perror("open");
# 93| return 0;
# 94| }
Error: CPPCHECK_WARNING (CWE-401): [#def40]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:93: error[memleak]: Memory leak: newmap
# 91| {
# 92| perror("open");
# 93|-> return 0;
# 94| }
# 95| while (flg_hdr)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:97:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘map’
# 95| while (flg_hdr)
# 96| {
# 97|-> if (map[i] == 'R' && map[ i - 1] == '\x0b')
# 98| flg_hdr = 2;
# 99| if (flg_hdr == 2 && map[i] == '$' && map[i - 1] == '\x1b')
Error: CLANG_WARNING: [#def42]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:102:4: warning[deadcode.DeadStores]: Value stored to 'flg_hdr' is never read
# 100| {
# 101| i++;
# 102|-> flg_hdr = 0;
# 103| break;
# 104| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:111:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
# 109| {
# 110| if (map[i] == 'P' && map[i - 1] == '\x1b')
# 111|-> newmap[o++] = '\n';
# 112| if (map[i] == 'L' && map[i - 1] == '\x1b')
# 113| newmap[o++] = '\n';
Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:113:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
# 111| newmap[o++] = '\n';
# 112| if (map[i] == 'L' && map[i - 1] == '\x1b')
# 113|-> newmap[o++] = '\n';
# 114| if (map[i] == '\x1b' && map[i - 1] == '\x1b')
# 115| newmap[o++] = '\x1b';
Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:115:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
# 113| newmap[o++] = '\n';
# 114| if (map[i] == '\x1b' && map[i - 1] == '\x1b')
# 115|-> newmap[o++] = '\x1b';
# 116| if (map[i] != '\x1b' && map[i - 1] != '\x1b')
# 117| newmap[o++] = map[i];
Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:117:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
# 115| newmap[o++] = '\x1b';
# 116| if (map[i] != '\x1b' && map[i - 1] != '\x1b')
# 117|-> newmap[o++] = map[i];
# 118| i++;
# 119| }
Error: COMPILER_WARNING (CWE-252): [#def47]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:122:3: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
# 122 | write(fd, newmap, size);
# | ^~~~~~~~~~~~~~~~~~~~~~~
# 120| /* Convert text into the current charset */
# 121| size = dos2unix(env, &newmap, o);
# 122|-> write(fd, newmap, size);
# 123| free(map);
# 124| free(newmap);
Error: CPPCHECK_WARNING (CWE-686): [#def48]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:146: error[invalidFunctionArgBool]: Invalid toupper() argument nr 1. A non-boolean value is required.
# 144| /* Reconnaissance de l'extension */
# 145| i = strlen((char*)name);
# 146|-> if (name[i - 2] == '.' && (toupper(name[i - 1] == 'K')
# 147| || toupper(name[i - 1]) == 'T'
# 148| || toupper(name[i - 1] == 'A')
Error: CPPCHECK_WARNING (CWE-686): [#def49]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:148: error[invalidFunctionArgBool]: Invalid toupper() argument nr 1. A non-boolean value is required.
# 146| if (name[i - 2] == '.' && (toupper(name[i - 1] == 'K')
# 147| || toupper(name[i - 1]) == 'T'
# 148|-> || toupper(name[i - 1] == 'A')
# 149| || toupper(name[i - 1] == 'L')
# 150| || toupper(name[i - 1]) == 'B'))
Error: CPPCHECK_WARNING (CWE-686): [#def50]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:149: error[invalidFunctionArgBool]: Invalid toupper() argument nr 1. A non-boolean value is required.
# 147| || toupper(name[i - 1]) == 'T'
# 148| || toupper(name[i - 1] == 'A')
# 149|-> || toupper(name[i - 1] == 'L')
# 150| || toupper(name[i - 1]) == 'B'))
# 151| {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘txt2k’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:186:14: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
# 184| {
# 185| perror("open");
# 186|-> return 0;
# 187| }
# 188| fstat(fd, &st);
Error: COMPILER_WARNING (CWE-252): [#def52]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘txt2k’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:191:3: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 191 | read(fd, map, size);
# | ^~~~~~~~~~~~~~~~~~~
# 189| size = st.st_size;
# 190| map = malloc(size + 1);
# 191|-> read(fd, map, size);
# 192| map[size] = 0;
# 193| close(fd);
Error: CLANG_WARNING: [#def53]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_convert.c:194:8: warning[deadcode.DeadStores]: Although the value stored to 'fd' is used in the enclosing expression, the value is never actually read from 'fd'
# 192| map[size] = 0;
# 193| close(fd);
# 194|-> if ((fd = open(destfile, O_WRONLY | O_CREAT | O_TRUNC, 0600)) == -1)
# 195| {
# 196| perror("open");
Error: CPPCHECK_WARNING: [#def54]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_transfer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-252): [#def55]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_transfer.c: scope_hint: In function ‘brtopc’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/EuroBraille/eutp_transfer.c:123:7: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
# 123 | write(fd, &(buf[3]), buf[0] - 2);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 121| sprintf((char*)str, "... %s %d", filename, lines);
# 122| brl_message((char*)str, 0);
# 123|-> write(fd, &(buf[3]), buf[0] - 2);
# 124| lines++;
# 125| }
Error: CPPCHECK_WARNING: [#def56]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/FreedomScientific/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def57]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/HandyTech/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-121): [#def58]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/HandyTech/braille.c: scope_hint: In function ‘writeUsbData2’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/HandyTech/braille.c:846:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/HandyTech/braille.c:19: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Headers/prologue.h:52:40: note: in definition of macro ‘MIN’
# 844| report[0] = HT_HID_RPT_InData;
# 845| report[1] = count;
# 846|-> memcpy(report+2, &buffer[index], count);
# 847| memset(&report[count+2], 0, sizeof(report)-count-2);
# 848|
Error: CPPCHECK_WARNING: [#def59]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/HumanWare/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def60]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Iris/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def61]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/LogText/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def62]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/MDV/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def63]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/MDV/braille.c: scope_hint: In function ‘writePacket’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/MDV/braille.c:192:10: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/MDV/braille.c:21: included_from: Included from here.
/usr/include/string.h:400:14: note: argument 2 of ‘mempcpy’ must be non-null
# 190| packet.fields.code = code;
# 191| packet.fields.length = length;
# 192|-> byte = mempcpy(byte, data, length);
# 193|
# 194| uint16_t checksum = calculateChecksum(&packet.fields.stx, byte);
Error: CLANG_WARNING: [#def64]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/MDV/braille.c:192:10: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 190| packet.fields.code = code;
# 191| packet.fields.length = length;
# 192|-> byte = mempcpy(byte, data, length);
# 193|
# 194| uint16_t checksum = calculateChecksum(&packet.fields.stx, byte);
Error: CPPCHECK_WARNING: [#def65]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/MultiBraille/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def66]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Papenmeier/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-457): [#def67]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Papenmeier/braille.c:913:28: warning[-Wmaybe-uninitialized]: ‘module.size’ may be used uninitialized
# 913 | bit += 8 - module->bit - module->size;
# | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Papenmeier/braille.c: scope_hint: In function ‘identifyTerminal2’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Papenmeier/braille.c:945:16: note: ‘module.size’ was declared here
# 945 | InputModule2 module;
# | ^~~~~~
# 911| bit += module->bit;
# 912| } else {
# 913|-> bit += 8 - module->bit - module->size;
# 914| }
# 915|
Error: CPPCHECK_WARNING: [#def68]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Pegasus/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def69]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Seika/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def70]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/TTY/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def71]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/TechniBraille/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def72]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/TechniBraille/braille.c: scope_hint: In function ‘writePacket’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/TechniBraille/braille.c:86:10: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/TechniBraille/braille.c:22: included_from: Included from here.
/usr/include/string.h:400:14: note: argument 2 of ‘mempcpy’ must be non-null
# 84| *byte++ = function;
# 85| *byte++ = count;
# 86|-> byte = mempcpy(byte, data, count);
# 87|
# 88| {
Error: CLANG_WARNING: [#def73]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/TechniBraille/braille.c:109:3: warning[core.VLASize]: Declared variable-length array (VLA) has zero size
# 107| writeBrailleCells (BrailleDisplay *brl) {
# 108| size_t count = brl->textColumns;
# 109|-> unsigned char cells[count];
# 110|
# 111| translateOutputCells(cells, brailleCells, count);
Error: CPPCHECK_WARNING: [#def74]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VideoBraille/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def75]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Virtual/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def76]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Virtual/braille.c:904: warning[uninitvar]: Uninitialized variable: columns1
# 902|
# 903| if (ok) {
# 904|-> int count1 = columns1 * rows1;
# 905| int count2 = columns2 * rows2;
# 906| unsigned char *braille;
Error: CPPCHECK_WARNING: [#def77]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VisioBraille/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def78]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VisioBraille/vstp_main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def79]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VisioBraille/vstp_main.c: scope_hint: In function ‘Parse’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VisioBraille/vstp_main.c:95:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘keyname’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
# 93| if (!strcmp(s,"keyname")) {
# 94| keyname = (char *) malloc(strlen(c)+1);
# 95|-> strcpy(keyname,c);
# 96| } else if (!strcmp(s,"socketport")) {
# 97| socketport = (char *) malloc(strlen(c)+1);
Error: GCC_ANALYZER_WARNING (CWE-688): [#def80]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VisioBraille/vstp_main.c:98:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘socketport’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
# 96| } else if (!strcmp(s,"socketport")) {
# 97| socketport = (char *) malloc(strlen(c)+1);
# 98|-> strcpy(socketport,c);
# 99| } else if (!strcmp(s,"vbs_ext")) {
# 100| visiobases_ext = (char *) malloc(5);
Error: GCC_ANALYZER_WARNING (CWE-688): [#def81]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VisioBraille/vstp_main.c:101:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘visiobases_ext’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strncpy’ must be non-null
# 99| } else if (!strcmp(s,"vbs_ext")) {
# 100| visiobases_ext = (char *) malloc(5);
# 101|-> strncpy(visiobases_ext,c,4);
# 102| visiobases_ext[4]=0;
# 103| } else if (!strcmp(s,"vbs_dir")) {
Error: GCC_ANALYZER_WARNING (CWE-688): [#def82]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VisioBraille/vstp_main.c:105:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘visiobases_dir’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
# 103| } else if (!strcmp(s,"vbs_dir")) {
# 104| visiobases_dir = (char *) malloc(strlen(c)+1);
# 105|-> strcpy(visiobases_dir,c);
# 106| }
# 107| } else {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VisioBraille/vstp_main.c: scope_hint: In function ‘CheckOptions’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VisioBraille/vstp_main.c:147:16: warning[-Wanalyzer-malloc-leak]: leak of ‘socketport’
# 145| if (argv[n][i]=='s') {
# 146| if (++m==argc) grr(argv[0]);
# 147|-> socketport=argv[m];
# 148| }
# 149| if (argv[n][i]=='k') {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VisioBraille/vstp_main.c:151:13: warning[-Wanalyzer-malloc-leak]: leak of ‘keyname’
# 149| if (argv[n][i]=='k') {
# 150| if (++m==argc) grr(argv[0]);
# 151|-> keyname=argv[m];
# 152| }
# 153| if (argv[n][i]=='o') {
Error: CPPCHECK_WARNING: [#def85]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VisioBraille/vstp_transfer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def86]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VisioBraille/vstp_transfer.c: scope_hint: In function ‘fileput’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/VisioBraille/vstp_transfer.c:309:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘f2’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
# 307| if (visiobases_dir && (f[0]!='.' || (f[1]!='.' && f[1]!='/') || (f[1]=='.' && f[2]!='/'))) {
# 308| char *f2 = malloc(strlen(visiobases_dir)+1+strlen(f));
# 309|-> strcpy(f2,visiobases_dir);
# 310| strcat(f2,f);
# 311| if (tryToFind(f2, &fd)) {
Error: CPPCHECK_WARNING: [#def87]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/Voyager/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def88]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/XWindow/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def89]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def90]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c:246: error[memleakOnRealloc]: Common realloc mistake: 'curRows' nulled but not freed upon failure
# 244| static void addRows(long pos, long num) {
# 245| curNumRows += num;
# 246|-> curRows = realloc(curRows,curNumRows*sizeof(*curRows));
# 247| curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
# 248| memmove(curRows +pos+num,curRows +pos,(curNumRows-(pos+num))*sizeof(*curRows));
Error: CPPCHECK_WARNING (CWE-401): [#def91]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c:247: error[memleakOnRealloc]: Common realloc mistake: 'curRowLengths' nulled but not freed upon failure
# 245| curNumRows += num;
# 246| curRows = realloc(curRows,curNumRows*sizeof(*curRows));
# 247|-> curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
# 248| memmove(curRows +pos+num,curRows +pos,(curNumRows-(pos+num))*sizeof(*curRows));
# 249| memmove(curRowLengths+pos+num,curRowLengths+pos,(curNumRows-(pos+num))*sizeof(*curRowLengths));
Error: CPPCHECK_WARNING (CWE-401): [#def92]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c:259: error[memleakOnRealloc]: Common realloc mistake: 'curRows' nulled but not freed upon failure
# 257| memmove(curRowLengths+pos,curRowLengths+pos+num,(curNumRows-(pos+num))*sizeof(*curRowLengths));
# 258| curNumRows -= num;
# 259|-> curRows = realloc(curRows,curNumRows*sizeof(*curRows));
# 260| curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
# 261| }
Error: CPPCHECK_WARNING (CWE-401): [#def93]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c:260: error[memleakOnRealloc]: Common realloc mistake: 'curRowLengths' nulled but not freed upon failure
# 258| curNumRows -= num;
# 259| curRows = realloc(curRows,curNumRows*sizeof(*curRows));
# 260|-> curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
# 261| }
# 262|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def94]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c: scope_hint: In function ‘restartTerm’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c:670:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘curRowLengths’
/usr/include/sched.h:29: included_from: Included from here.
/usr/include/pthread.h:22: included_from: Included from here.
/usr/include/glib-2.0/glib/deprecated/gthread.h:126: included_from: Included from here.
/usr/include/glib-2.0/glib.h:115: included_from: Included from here.
/usr/include/at-spi-2.0/atspi/atspi.h:27: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c:30: included_from: Included from here.
# 668| *d = 0;
# 669| e = c;
# 670|-> curRowLengths[i] = (len = my_mbsrtowcs(NULL,&e,0,NULL)) + (d != NULL);
# 671| if (len > curNumCols)
# 672| curNumCols = len;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c:680:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘curRows’
# 678| curRowLengths[i] = (len = 0) + (d != NULL);
# 679| }
# 680|-> curRows[i] = malloc((len + (d!=NULL)) * sizeof(*curRows[i]));
# 681| e = c;
# 682| my_mbsrtowcs(curRows[i],&e,len,NULL);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c: scope_hint: In function ‘getState’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c:751:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
# 749| }
# 750| ret = malloc(sizeof(*ret) * count);
# 751|-> memcpy(ret, states, sizeof(*ret) * count);
# 752|
# 753| out:
Error: CLANG_WARNING: [#def97]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c:1094:14: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
# 1092| logMessage(LOG_CATEGORY(SCREEN_DRIVER),
# 1093| "'%s'",added);
# 1094|-> adding = c = added;
# 1095| if (y < curNumRows && x > curRowLengths[y]) {
# 1096| logMessage(LOG_ERR,"adding %ld %ld past end of text!", len, x - curRowLengths[y]);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def98]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c: scope_hint: In function ‘a2AddWatch’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c:1299:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a2Watch’
# 1297| {
# 1298| struct a2Watch *a2Watch = calloc(1, sizeof(*a2Watch));
# 1299|-> a2Watch->watch = watch;
# 1300| int flags = dbus_watch_get_flags(watch);
# 1301| if (dbus_watch_get_enabled(watch))
Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c: scope_hint: In function ‘a2AddTimeout’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/AtSpi2/a2_screen.c:1366:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a2Timeout’
# 1364| {
# 1365| struct a2Timeout *a2Timeout = calloc(1, sizeof(*a2Timeout));
# 1366|-> a2Timeout->timeout = timeout;
# 1367| if (dbus_timeout_get_enabled(timeout))
# 1368| asyncNewRelativeAlarm(&a2Timeout->monitor, dbus_timeout_get_interval(timeout), a2ProcessTimeout, a2Timeout);
Error: CPPCHECK_WARNING: [#def100]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/FileViewer/screen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def101]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/Linux/screen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/Linux/screen.c: scope_hint: In function ‘controlCurrentConsole.part.0’
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/Linux/screen.c:435:7: warning[-Wanalyzer-malloc-leak]: leak of ‘sfm.entries’
# 433| case GIO_UNIMAP: {
# 434| struct unimapdesc *sfm = argument;
# 435|-> memset(sfm, 0, sizeof(*sfm));
# 436| sfm->entries = NULL;
# 437| sfm->entry_ct = 0;
Error: CLANG_WARNING: [#def103]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/Linux/screen.c:436:20: warning[unix.Malloc]: Potential memory leak
# 434| struct unimapdesc *sfm = argument;
# 435| memset(sfm, 0, sizeof(*sfm));
# 436|-> sfm->entries = NULL;
# 437| sfm->entry_ct = 0;
# 438| return 0;
Error: CPPCHECK_WARNING (CWE-457): [#def104]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/Linux/screen.c:607: warning[uninitvar]: Uninitialized variable: buffer
# 605| static int
# 606| readUnicodeData (off_t offset, void *buffer, size_t size) {
# 607|-> size_t count = (unicodeCacheBuffer? readUnicodeCache: readUnicodeDevice)(offset, buffer, size);
# 608| if (count == size) return 1;
# 609|
Error: CLANG_WARNING: [#def105]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/Linux/screen.c:918:11: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 916| if (!force) {
# 917| if (sfm.entry_ct == screenFontMapCount) {
# 918|-> if (memcmp(sfm.entries, screenFontMapTable, sfm.entry_ct*sizeof(sfm.entries[0])) == 0) {
# 919| free(sfm.entries);
# 920| return 0;
Error: CLANG_WARNING: [#def106]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/Linux/screen.c:1138:12: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1136|
# 1137| if (unicode) {
# 1138|-> wc = *unicode++;
# 1139|
# 1140| if ((blanks > 0) && (wc == WC_C(' '))) {
Error: CLANG_WARNING: [#def107]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/Linux/screen.c:1149:34: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
# 1147| }
# 1148| } else {
# 1149|-> uint16_t position = *vga & 0XFF;
# 1150| if (*vga & fontAttributesMask) position |= 0X100;
# 1151| wc = convertCharacter(&translationTable[position]);
Error: CLANG_WARNING: [#def108]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/Linux/screen.c:1156:42: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
# 1154| if (wc != WEOF) {
# 1155| if (character) {
# 1156|-> character->attributes = ((*vga & unshiftedAttributesMask) |
# 1157| ((*vga & shiftedAttributesMask) >> 1)) >> 8;
# 1158|
Error: CPPCHECK_WARNING: [#def109]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Screen/TerminalEmulator/em_screen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def110]
brltty-6.6-build/brltty-6.6/minimal/Headers/bitfield.h:76: error[ctunullpointer]: Null pointer dereference: to
# 74| }
# 75|
# 76|-> DEFINE_PHYSICAL_ENDIAN_FUNCTIONS(16)
# 77| DEFINE_PHYSICAL_ENDIAN_FUNCTIONS(32)
# 78| DEFINE_PHYSICAL_ENDIAN_FUNCTIONS(64)
Error: COMPILER_WARNING: [#def111]
brltty-6.6-build/brltty-6.6/minimal/Drivers/Braille/TTY/braille.c:40: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Headers/get_curses.h:54:2: warning[-Wcpp]: #warning curses package either unspecified or unsupported
# 52|
# 53| #else /* curses package */
# 54|-> #warning curses package either unspecified or unsupported
# 55| #endif /* curses package */
# 56|
Error: CPPCHECK_WARNING: [#def112]
brltty-6.6-build/brltty-6.6/minimal/Programs/alert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def113]
brltty-6.6-build/brltty-6.6/minimal/Programs/apitest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def114]
brltty-6.6-build/brltty-6.6/minimal/Programs/apitest.c:329:11: warning[deadcode.DeadStores]: Although the value stored to 'res' is used in the enclosing expression, the value is never actually read from 'res'
# 327| }
# 328|
# 329|-> while ((res = brlapi_readKey(1, &code)) != -1) {
# 330| fprintf(stderr, "got key %016"BRLAPI_PRIxKEYCODE"\n",code);
# 331| cmd = cmdBrlapiToBrltty(code);
Error: CPPCHECK_WARNING: [#def115]
brltty-6.6-build/brltty-6.6/minimal/Programs/async_alarm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def116]
brltty-6.6-build/brltty-6.6/minimal/Programs/async_io.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def117]
brltty-6.6-build/brltty-6.6/minimal/Programs/async_signal.c:603:36: warning[deadcode.DeadStores]: Value stored to 'info' during its initialization is never read
# 601| label, sig->signalfd.fileDescriptor, sig->number);
# 602| } else {
# 603|-> const struct signalfd_siginfo *info = parameters->buffer;
# 604|
# 605| handlePendingSignal(sig);
Error: CPPCHECK_WARNING: [#def118]
brltty-6.6-build/brltty-6.6/minimal/Programs/atb_compile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def119]
brltty-6.6-build/brltty-6.6/minimal/Programs/auth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
brltty-6.6-build/brltty-6.6/minimal/Programs/auth.c: scope_hint: In function ‘initializeMethodDescriptor’
brltty-6.6-build/brltty-6.6/minimal/Programs/auth.c:290:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*definition.initialize(parameter)’
brltty-6.6-build/brltty-6.6/minimal/Programs/auth.c:19: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Headers/prologue.h:56:38: note: in definition of macro ‘ARRAY_SIZE’
# 288|
# 289| if ((keyfile = malloc(sizeof(*keyfile)))) {
# 290|-> if (*parameter) {
# 291| keyfile->path = parameter;
# 292| return keyfile;
Error: CPPCHECK_WARNING: [#def121]
brltty-6.6-build/brltty-6.6/minimal/Programs/bluetooth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def122]
brltty-6.6-build/brltty-6.6/minimal/Programs/bluetooth.c:685:33: warning[core.NullDereference]: Array access (via field 'table') results in a null pointer dereference
# 683| while (first <= last) {
# 684| unsigned int current = (first + last) / 2;
# 685|-> int relation = strcmp(code, driverCodes.table[current]);
# 686|
# 687| if (relation < 0) {
Error: CLANG_WARNING: [#def123]
brltty-6.6-build/brltty-6.6/minimal/Programs/bluetooth.c:749:42: warning[core.NullDereference]: Array access (via field 'table') results in a null pointer dereference
# 747|
# 748| if (bthEnsureDriverCodeTableSize()) {
# 749|-> driverCodes.table[driverCodes.count] = NULL;
# 750| return driverCodes.table;
# 751| }
Error: CPPCHECK_WARNING: [#def124]
brltty-6.6-build/brltty-6.6/minimal/Programs/bluetooth_linux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def125]
brltty-6.6-build/brltty-6.6/minimal/Programs/brl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def126]
brltty-6.6-build/brltty-6.6/minimal/Programs/brl_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:106: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h: scope_hint: In function ‘brlapi_writePacket’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1365:24: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1373:24: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:63:3: note: in expansion of macro ‘brlapi_errfun’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:282:9: note: in expansion of macro ‘BRLAPI’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:110: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:61:3: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:61:3: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:61:3: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1369:27: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:62:3: note: in expansion of macro ‘brlapi_libcerrno’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1369:27: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:62:3: note: in expansion of macro ‘brlapi_libcerrno’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1373:24: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:63:3: note: in expansion of macro ‘brlapi_errfun’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
# 1363|
# 1364| /** Cheat about the brlapi_error C token */
# 1365|-> #define brlapi_error (*brlapi_error_location())
# 1366| /** Cheat about the brlapi_errno C token */
# 1367| #define brlapi_errno (brlapi_error.brlerrno)
Error: CPPCHECK_WARNING: [#def128]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def129]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:470:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 468| {
# 469| /* For us, just copy */
# 470|-> memcpy(packet, handle->packet.content, MIN(packetSize, size));
# 471| return size;
# 472| }
Error: CPPCHECK_WARNING (CWE-562): [#def130]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:615: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 613| handle->altPacket = packet;
# 614| handle->altSize = size;
# 615|-> handle->altRes = &res;
# 616| sem_init(&sem, 0, 0);
# 617| handle->altSem = &sem;
Error: CPPCHECK_WARNING (CWE-562): [#def131]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:617: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 615| handle->altRes = &res;
# 616| sem_init(&sem, 0, 0);
# 617|-> handle->altSem = &sem;
# 618| }
# 619| pthread_mutex_unlock(&handle->read_mutex);
Error: CLANG_WARNING: [#def132]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:1074:8: warning[deadcode.DeadStores]: Although the value stored to 'len' is used in the enclosing expression, the value is never actually read from 'len'
# 1072| }
# 1073|
# 1074|-> if ((len = brlapi__waitForPacket(handle, BRLAPI_PACKET_VERSION, &serverPacket, sizeof(serverPacket), WAIT_FOR_EXPECTED_PACKET, WAIT_FOREVER)) < 0)
# 1075| goto outfd;
# 1076|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c: scope_hint: In function ‘ignore_accept_keys.part.0’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:2523:16: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:2522:9: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:2522:9: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:2522:9: note: in expansion of macro ‘brlapi_errno’
# 2521| if (code[i] & mask) {
# 2522| brlapi_errno = BRLAPI_ERROR_INVALID_PARAMETER;
# 2523|-> return -1;
# 2524| }
# 2525| ranges[i].first = code[i];
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c: scope_hint: In function ‘ignore_accept_keys’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:2714:38: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:2508:7: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:2508:7: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:2508:7: note: in expansion of macro ‘brlapi_errno’
# 2712| pthread_once(&error_key_once, error_key_alloc);
# 2713| if (pthread_error_ok) {
# 2714|-> if ((errorp=(brlapi_error_t *) pthread_getspecific(error_key)))
# 2715| /* normal case */
# 2716| return errorp;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c: scope_hint: In function ‘brlapi_error_location’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:2719:46: warning[-Wanalyzer-malloc-leak]: leak of ‘errorp’
# 2717| else
# 2718| /* on the first time, must allocate it */
# 2719|-> if ((errorp=malloc(sizeof(*errorp))) && !pthread_setspecific(error_key,errorp)) {
# 2720| memset(errorp,0,sizeof(*errorp));
# 2721| return errorp;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:313:14: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:305:9: note: in expansion of macro ‘BRLAPI’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:61:3: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:312:7: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:61:3: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:312:7: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1369:27: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:62:3: note: in expansion of macro ‘brlapi_libcerrno’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:312:7: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1369:27: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:62:3: note: in expansion of macro ‘brlapi_libcerrno’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:312:7: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1373:24: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:63:3: note: in expansion of macro ‘brlapi_errfun’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:312:7: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi.h:1373:24: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:63:3: note: in expansion of macro ‘brlapi_errfun’
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:312:7: note: in expansion of macro ‘LibcError’
# 311| /* reports EINTR too */
# 312| LibcError("read in brlapi_readPacketHeader");
# 313|-> return -1;
# 314| } else return -2;
# 315| }
Error: CLANG_WARNING: [#def137]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:110: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:849:8: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 847| static void convertInteger_ntoh16 (void *v) {
# 848| uint16_t *u = v;
# 849|-> *u = ntohs(*u);
# 850| }
# 851|
Error: CLANG_WARNING: [#def138]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:110: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:859:8: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 857| static void convertInteger_ntoh32 (void *v) {
# 858| uint32_t *u = v;
# 859|-> *u = ntohl(*u);
# 860| }
# 861|
Error: CLANG_WARNING: [#def139]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_client.c:110: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_common.h:877:21: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
# 875| #ifndef WORDS_BIGENDIAN
# 876| uint64_t *u = v;
# 877|-> uint32_t low = *u & UINT64_LOW;
# 878| uint32_t high = *u >> UINT64_SHIFT;
# 879| *u = ((uint64_t)ntohl(low) << UINT64_SHIFT) | ntohl(high);
Error: CPPCHECK_WARNING: [#def140]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_keyranges.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def141]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def142]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_server.c:1171:5: warning[deadcode.DeadStores]: Value stored to 'p' is never read
# 1169| CHECKEXC(remaining>=charsetLen, BRLAPI_ERROR_INVALID_PACKET, "packet too small for charset");
# 1170| charset = (char *) p;
# 1171|-> p += charsetLen; remaining -= charsetLen; /* charset name */
# 1172| }
# 1173| CHECKEXC(remaining==0, BRLAPI_ERROR_INVALID_PACKET, "packet too big");
Error: CLANG_WARNING: [#def143]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_server.c:1206:22: warning[deadcode.DeadStores]: Value stored to 'charsetLen' is never read
# 1204| #endif /* HAVE_ALLOCA_H */
# 1205|
# 1206|-> if (charset) charsetLen = length;
# 1207| }
# 1208|
Error: CLANG_WARNING: [#def144]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_server.c:1305:5: warning[deadcode.DeadStores]: Value stored to 'charsetLen' is never read
# 1303| // This occurs when getCharset() is saved and alloca() isn't available.
# 1304| charset = NULL;
# 1305|-> charsetLen = 0;
# 1306|
# 1307| if (!andAttr) memset(c->brailleWindow.andAttr+rbeg-1,0xFF,rsiz_filled);
Error: CPPCHECK_WARNING (CWE-476): [#def145]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_server.c:2331: error[ctunullpointer]: Null pointer dereference: c
# 2329| struct Subscription *s;
# 2330|
# 2331|-> for (s=c->subscriptions.next; s!=&c->subscriptions; s=s->next) {
# 2332| if (s->parameter == param
# 2333| && s->subparam == subparam
Error: CLANG_WARNING: [#def146]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_server.c:4089:5: warning[unix.Malloc]: Use of memory after it is freed
# 4087| {
# 4088| while (tty->connections->next != tty->connections) {
# 4089|-> removeFreeConnection(tty->connections->next);
# 4090| }
# 4091| freeConnection(tty->connections);
Error: CPPCHECK_WARNING (CWE-401): [#def147]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_server.c:4476: error[memleakOnRealloc]: Common realloc mistake: 'coreWindowText' nulled but not freed upon failure
# 4474| displayDimensions[1] = htonl(brl->textRows);
# 4475| displaySize = brl->textColumns * brl->textRows;
# 4476|-> coreWindowText = realloc(coreWindowText, displaySize * sizeof(*coreWindowText));
# 4477| coreWindowDots = realloc(coreWindowDots, displaySize * sizeof(*coreWindowDots));
# 4478| coreWindowCursor = 0;
Error: CPPCHECK_WARNING (CWE-401): [#def148]
brltty-6.6-build/brltty-6.6/minimal/Programs/brlapi_server.c:4477: error[memleakOnRealloc]: Common realloc mistake: 'coreWindowDots' nulled but not freed upon failure
# 4475| displaySize = brl->textColumns * brl->textRows;
# 4476| coreWindowText = realloc(coreWindowText, displaySize * sizeof(*coreWindowText));
# 4477|-> coreWindowDots = realloc(coreWindowDots, displaySize * sizeof(*coreWindowDots));
# 4478| coreWindowCursor = 0;
# 4479| handleParamUpdate(NULL, NULL, BRLAPI_PARAM_DISPLAY_SIZE, 0, BRLAPI_PARAMF_GLOBAL, displayDimensions, sizeof(displayDimensions));
Error: CPPCHECK_WARNING: [#def149]
brltty-6.6-build/brltty-6.6/minimal/Programs/brltty-atb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def150]
brltty-6.6-build/brltty-6.6/minimal/Programs/brltty-cldr.c:116: error[uninitvar]: Uninitialized variable: *character
# 114|
# 115| while (character < end) {
# 116|-> if (writeHexadecimalCharacter(stdout, *character) == EOF) onOutputError();
# 117| character += 1;
# 118| }
Error: CPPCHECK_WARNING: [#def151]
brltty-6.6-build/brltty-6.6/minimal/Programs/brltty-clip.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def152]
brltty-6.6-build/brltty-6.6/minimal/Programs/brltty-ctb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def153]
brltty-6.6-build/brltty-6.6/minimal/Programs/brltty-hid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def154]
brltty-6.6-build/brltty-6.6/minimal/Programs/brltty-ktb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def155]
brltty-6.6-build/brltty-6.6/minimal/Programs/brltty-lscmds.c:236: warning[uninitvar]: Uninitialized variables: commands.name, commands.description, commands.code, commands.isToggle, commands.isMotion, commands.isRow, commands.isVertical, commands.isHorizontal, commands.isPanning, commands.isInput, commands.isCharacter, commands.isBraille, commands.isKeyboard, commands.isRouting, commands.isColumn, commands.isOffset, commands.isRange
# 234| commands[index] = &commandTable[index];
# 235| }
# 236|-> qsort(commands, count, sizeof(commands[0]), compareCommands);
# 237|
# 238| for (int index=0; index<count; index+=1) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
brltty-6.6-build/brltty-6.6/minimal/Programs/brltty-lsinc.c: scope_hint: In function ‘logFileName.part.0’
brltty-6.6-build/brltty-6.6/minimal/Programs/brltty-lsinc.c:54:1: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
# 52| printf("%s\n", name);
# 53| }
# 54|-> }
# 55|
# 56| static DATA_CONDITION_TESTER(testConditionOperand) {
Error: CPPCHECK_WARNING: [#def157]
brltty-6.6-build/brltty-6.6/minimal/Programs/brltty-morse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def158]
brltty-6.6-build/brltty-6.6/minimal/Programs/brltty-trtxt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def159]
brltty-6.6-build/brltty-6.6/minimal/Programs/brltty-ttb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def160]
brltty-6.6-build/brltty-6.6/minimal/Programs/brltty-ttb.c:402: warning[uninitvar]: Uninitialized variables: inputCharactersBuffer.character, inputCharactersBuffer.dots
# 400|
# 401| qsort(
# 402|-> inputCharactersBuffer, inputCharacterCount,
# 403| sizeof(inputCharactersBuffer[0]),
# 404| sortInputCharacterEntries
Error: CPPCHECK_WARNING: [#def161]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-121): [#def162]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c: scope_hint: In function ‘registerCharacterSet’
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:121:26: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:121:26: note: write of 8 bytes to beyond the end of ‘convTable’
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:121:26: note: valid subscripts for ‘convTable’ are ‘[0]’ to ‘[1]’
# 119|
# 120| while (conv < convEnd) {
# 121|-> if ((conv->newHandle = iconv_open(conv->toCharset, conv->fromCharset)) == CHARSET_ICONV_NULL) {
# 122| logSystemError("iconv_open");
# 123|
Error: GCC_ANALYZER_WARNING (CWE-126): [#def163]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:121:43: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:121:43: note: read of 8 bytes from after the end of ‘convTable’
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:121:43: note: valid subscripts for ‘convTable’ are ‘[0]’ to ‘[1]’
# └──────────────────────────────────────┘
# ^
# 119|
# 120| while (conv < convEnd) {
# 121|-> if ((conv->newHandle = iconv_open(conv->toCharset, conv->fromCharset)) == CHARSET_ICONV_NULL) {
# 122| logSystemError("iconv_open");
# 123|
Error: GCC_ANALYZER_WARNING (CWE-126): [#def164]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:121:60: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:121:60: note: read of 8 bytes from after the end of ‘convTable’
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:121:60: note: valid subscripts for ‘convTable’ are ‘[0]’ to ‘[1]’
# └──────────────────────────────────────┘
# ^
# 119|
# 120| while (conv < convEnd) {
# 121|-> if ((conv->newHandle = iconv_open(conv->toCharset, conv->fromCharset)) == CHARSET_ICONV_NULL) {
# 122| logSystemError("iconv_open");
# 123|
Error: GCC_ANALYZER_WARNING (CWE-126): [#def165]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:126:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:126:9: note: read of 8 bytes from after the end of ‘convTable’
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:126:9: note: valid subscripts for ‘convTable’ are ‘[0]’ to ‘[1]’
# └──────────────────────────┘
# ^
# 124| while (conv > convTable) {
# 125| conv -= 1;
# 126|-> iconv_close(conv->newHandle);
# 127| }
# 128|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[0].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[1].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[2].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[3].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[4].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[5].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[6].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-126): [#def173]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:138:14: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:138:14: note: read of 8 bytes from after the end of ‘convTable’
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:138:14: note: valid subscripts for ‘convTable’ are ‘[0]’ to ‘[1]’
# └──────────────────────────────────┘
# ^
# 136| conv -= 1;
# 137|
# 138|-> if (*conv->handle == CHARSET_ICONV_NULL) {
# 139| firstTime = 1;
# 140| } else {
Error: GCC_ANALYZER_WARNING (CWE-126): [#def174]
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:144:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:144:25: note: read of 8 bytes from after the end of ‘convTable’
brltty-6.6-build/brltty-6.6/minimal/Programs/charset_iconv.c:144:25: note: valid subscripts for ‘convTable’ are ‘[0]’ to ‘[1]’
# └──────────────────────────┘
# ^
# 142| }
# 143|
# 144|-> *conv->handle = conv->newHandle;
# 145| }
# 146|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
brltty-6.6-build/brltty-6.6/minimal/Programs/clipboard.c: scope_hint: In function ‘newClipboard’
brltty-6.6-build/brltty-6.6/minimal/Programs/clipboard.c:201:8: warning[-Wanalyzer-malloc-leak]: leak of ‘cpb’
# 199| cpb->buffer.length = 0;
# 200|
# 201|-> if ((cpb->history.queue = newQueue(deallocateClipboardHistoryEntry, NULL))) {
# 202| return cpb;
# 203| }
Error: CPPCHECK_WARNING (CWE-401): [#def176]
brltty-6.6-build/brltty-6.6/minimal/Programs/clipboard.c:208: error[memleak]: Memory leak: cpb
# 206| }
# 207|
# 208|-> return NULL;
# 209| }
# 210|
Error: CPPCHECK_WARNING: [#def177]
brltty-6.6-build/brltty-6.6/minimal/Programs/cmd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def178]
brltty-6.6-build/brltty-6.6/minimal/Programs/cmd_clipboard.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def179]
brltty-6.6-build/brltty-6.6/minimal/Programs/cmd_keycodes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def180]
brltty-6.6-build/brltty-6.6/minimal/Programs/cmd_miscellaneous.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def181]
brltty-6.6-build/brltty-6.6/minimal/Programs/cmd_navigation.c:233: warning[uninitvar]: Uninitialized variable: text
# 231| }
# 232|
# 233|-> return !!rgxMatchTextCharacters(promptPatterns, text, length, NULL, NULL);
# 234| }
# 235|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def182]
brltty-6.6-build/brltty-6.6/minimal/Programs/cmd_queue.c: scope_hint: In function ‘pushCommandHandler’
brltty-6.6-build/brltty-6.6/minimal/Programs/cmd_queue.c:307:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.6-build/brltty-6.6/minimal/Programs/cmd_queue.c: scope_hint: In function ‘pushCommandHandler’
# 305| CommandHandlerLevel **top = getCommandHandlerTop();
# 306|
# 307|-> chl->previousLevel = *top;
# 308| *top = chl;
# 309| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def183]
brltty-6.6-build/brltty-6.6/minimal/Programs/cmd_queue.c: scope_hint: In function ‘popCommandHandler’
brltty-6.6-build/brltty-6.6/minimal/Programs/cmd_queue.c:323:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.6-build/brltty-6.6/minimal/Programs/cmd_queue.c: scope_hint: In function ‘popCommandHandler’
# 321| popCommandHandler (void) {
# 322| CommandHandlerLevel **top = getCommandHandlerTop();
# 323|-> CommandHandlerLevel *chl = *top;
# 324|
# 325| if (!chl) return 0;
Error: CPPCHECK_WARNING: [#def184]
brltty-6.6-build/brltty-6.6/minimal/Programs/cmd_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def185]
brltty-6.6-build/brltty-6.6/minimal/Programs/cmdline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
brltty-6.6-build/brltty-6.6/minimal/Programs/cmdline.c: scope_hint: In function ‘processCommandLine’
brltty-6.6-build/brltty-6.6/minimal/Programs/cmdline.c:466:18: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
# 464|
# 465| if (strncasecmp(noPrefix, word, noLength) == 0) {
# 466|-> name = strdup(&word[noLength]);
# 467| } else {
# 468| size_t size = noLength + strlen(word) + 1;
Error: CLANG_WARNING: [#def187]
brltty-6.6-build/brltty-6.6/minimal/Programs/cmdline.c:501:10: warning[unix.Malloc]: Potential leak of memory pointed to by field 'name'
# 499| #endif /* ALLOW_DOS_OPTION_SYNTAX */
# 500|
# 501|-> opterr = 0;
# 502| optind = 1;
# 503| int lastOptInd = -1;
Error: CLANG_WARNING: [#def188]
brltty-6.6-build/brltty-6.6/minimal/Programs/cmdline.c:645:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 643|
# 644| case 0: { // reset a flag
# 645|-> const CommandLineOption *option = letterToOption[resetLetter];
# 646| *option->setting.flag = 0;
# 647| setEnsuredSetting(info, option, 1);
Error: CPPCHECK_WARNING: [#def189]
brltty-6.6-build/brltty-6.6/minimal/Programs/config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def190]
brltty-6.6-build/brltty-6.6/minimal/Programs/core.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def191]
brltty-6.6-build/brltty-6.6/minimal/Programs/ctb_compile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def192]
brltty-6.6-build/brltty-6.6/minimal/Programs/ctb_compile.c:561:16: warning[deadcode.DeadStores]: Although the value stored to 'class' is used in the enclosing expression, the value is never actually read from 'class'
# 559| const struct CharacterClass *class;
# 560|
# 561|-> if ((class = findCharacterClass(name.characters, name.length, ctd))) {
# 562| reportDataError(file, "character class already defined: %.*" PRIws,
# 563| name.length, name.characters);
Error: CPPCHECK_WARNING: [#def193]
brltty-6.6-build/brltty-6.6/minimal/Programs/ctb_native.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def194]
brltty-6.6-build/brltty-6.6/minimal/Programs/ctb_native.c:668:78: warning[core.NullDereference]: Array access (via field 'current') results in a null pointer dereference
# 666| static void
# 667| setBefore (BrailleContractionData *bcd) {
# 668|-> bcd->current.before = (bcd->input.current == bcd->input.begin)? WC_C(' '): bcd->input.current[-1];
# 669| }
# 670|
Error: CPPCHECK_WARNING: [#def195]
brltty-6.6-build/brltty-6.6/minimal/Programs/ctb_translate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def196]
brltty-6.6-build/brltty-6.6/minimal/Programs/ctb_translate.c:356:67: warning[core.NullDereference]: Dereference of null pointer
# 354| while ((bcd.input.current < bcd.input.end) && (bcd.output.current < bcd.output.end)) {
# 355| setOffset(&bcd);
# 356|-> *bcd.output.current++ = convertCharacterToDots(textTable, *bcd.input.current++);
# 357| }
# 358| }
Error: CLANG_WARNING: [#def197]
brltty-6.6-build/brltty-6.6/minimal/Programs/ctb_translate.c:25: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Programs/ctb_translate.h:119:29: warning[core.NullDereference]: Array access (via field 'current') results in a null pointer dereference
# 117| static inline int
# 118| testRelative (BrailleContractionData *bcd, int offset, ContractionTableCharacterAttributes attributes) {
# 119|-> return testCharacter(bcd, bcd->input.current[offset], attributes);
# 120| }
# 121|
Error: CPPCHECK_WARNING: [#def198]
brltty-6.6-build/brltty-6.6/minimal/Programs/datafile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def199]
brltty-6.6-build/brltty-6.6/minimal/Programs/datafile.c:1139:15: warning[deadcode.DeadStores]: Value stored to 'overrideDirectory' is never read
# 1137| if (testFilePath(path)) {
# 1138| file = openFile(path, mode, optional);
# 1139|-> overrideDirectory = *directory;
# 1140| overridePath = path;
# 1141| goto done;
Error: CPPCHECK_WARNING: [#def200]
brltty-6.6-build/brltty-6.6/minimal/Programs/drivers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def201]
brltty-6.6-build/brltty-6.6/minimal/Programs/file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-252): [#def202]
brltty-6.6-build/brltty-6.6/minimal/Programs/file.c:1094: error[leakReturnValNotUsed]: Return value of allocation function 'freopen' is not stored.
# 1092| }
# 1093|
# 1094|-> if (!freopen(nullDevice, (output? "a": "r"), stream)) {
# 1095| if (errno != ENOENT) {
# 1096| char action[0X40];
Error: CPPCHECK_WARNING: [#def203]
brltty-6.6-build/brltty-6.6/minimal/Programs/gio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def204]
brltty-6.6-build/brltty-6.6/minimal/Programs/gio.c: scope_hint: In function ‘gioConnectResource’
brltty-6.6-build/brltty-6.6/minimal/Programs/gio.c:171:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 169| if ((endpoint->handle = properties->private->connectResource(identifier, descriptor))) {
# 170| {
# 171|-> GioGetChainedEndpointMethod *getChainedEndpoint = endpoint->handleMethods->getChainedEndpoint;
# 172|
# 173| if (getChainedEndpoint) {
Error: CLANG_WARNING: [#def205]
brltty-6.6-build/brltty-6.6/minimal/Programs/gio.c:171:63: warning[core.NullDereference]: Access to field 'getChainedEndpoint' results in a dereference of a null pointer (loaded from field 'handleMethods')
# 169| if ((endpoint->handle = properties->private->connectResource(identifier, descriptor))) {
# 170| {
# 171|-> GioGetChainedEndpointMethod *getChainedEndpoint = endpoint->handleMethods->getChainedEndpoint;
# 172|
# 173| if (getChainedEndpoint) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
brltty-6.6-build/brltty-6.6/minimal/Programs/gio.c:218:6: warning[-Wanalyzer-malloc-leak]: leak of ‘endpoint’
# 216| int
# 217| gioDisconnectResource (GioEndpoint *endpoint) {
# 218|-> if (--endpoint->referenceCount > 0) return 1;
# 219|
# 220| int ok = 0;
Error: CPPCHECK_WARNING: [#def207]
brltty-6.6-build/brltty-6.6/minimal/Programs/hid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def208]
brltty-6.6-build/brltty-6.6/minimal/Programs/hid_inspect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def209]
brltty-6.6-build/brltty-6.6/minimal/Programs/hid_items.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def210]
brltty-6.6-build/brltty-6.6/minimal/Programs/hidkeys.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def211]
brltty-6.6-build/brltty-6.6/minimal/Programs/hostcmd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def212]
brltty-6.6-build/brltty-6.6/minimal/Programs/hostcmd_unix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def213]
brltty-6.6-build/brltty-6.6/minimal/Programs/ihex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def214]
brltty-6.6-build/brltty-6.6/minimal/Programs/kbd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def215]
brltty-6.6-build/brltty-6.6/minimal/Programs/kbd_linux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def216]
brltty-6.6-build/brltty-6.6/minimal/Programs/kbd_linux.c: scope_hint: In function ‘monitorKeyboard’
brltty-6.6-build/brltty-6.6/minimal/Programs/kbd_linux.c:647:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*kio_95(D)->kix.device.path, 0)’
# 645| const char *deviceName = locatePathName(kio->kix->device.path);
# 646|
# 647|-> if ((kio->kix->file.descriptor = open(kio->kix->device.path, O_RDONLY)) != -1) {
# 648| struct stat status;
# 649|
Error: CLANG_WARNING: [#def217]
brltty-6.6-build/brltty-6.6/minimal/Programs/kbd_linux.c:824:10: warning[deadcode.DeadStores]: Although the value stored to 'length' is used in the enclosing expression, the value is never actually read from 'length'
# 822| ssize_t length;
# 823|
# 824|-> if ((length = read(descriptor, buffer, sizeof(buffer))) > 0) {
# 825| if (sscanf(buffer, "%d:%d", major, minor) == 2) {
# 826| ok = 1;
Error: CPPCHECK_WARNING: [#def218]
brltty-6.6-build/brltty-6.6/minimal/Programs/ktb_compile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def219]
brltty-6.6-build/brltty-6.6/minimal/Programs/ktb_list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def220]
brltty-6.6-build/brltty-6.6/minimal/Programs/ktb_list.c:272:29: warning[core.NullDereference]: Dereference of null pointer
# 270|
# 271| if (dotCount == 2) {
# 272|-> char firstDot = *STR_POP();
# 273| STR_PRINTF("s%c", firstDot);
# 274| }
Error: CPPCHECK_WARNING: [#def221]
brltty-6.6-build/brltty-6.6/minimal/Programs/ktb_translate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def222]
brltty-6.6-build/brltty-6.6/minimal/Programs/ktb_translate.c:919:3: warning[unix.Malloc]: Use of memory after it is freed
# 917|
# 918| *count = acd.count;
# 919|-> return acd.array;
# 920|
# 921| error:
Error: CPPCHECK_WARNING: [#def223]
brltty-6.6-build/brltty-6.6/minimal/Programs/log.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def224]
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def225]
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘beginMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c:186:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘beginMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘beginMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘beginMenuItem’
# 184| static int
# 185| beginMenuItem (MenuItem *item) {
# 186|-> return !item->methods->beginItem || item->methods->beginItem(item);
# 187| }
# 188|
Error: CLANG_WARNING: [#def226]
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c:191:7: warning[core.NullDereference]: Access to field 'endItem' results in a dereference of a null pointer (loaded from field 'methods')
# 189| static void
# 190| endMenuItem (MenuItem *item, int deallocating) {
# 191|-> if (item->methods->endItem) item->methods->endItem(item, deallocating);
# 192| }
# 193|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def227]
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c:191:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘destroyMenu’
# 189| static void
# 190| endMenuItem (MenuItem *item, int deallocating) {
# 191|-> if (item->methods->endItem) item->methods->endItem(item, deallocating);
# 192| }
# 193|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def228]
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘getMenuItemTitle’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c:284:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘getMenuItemTitle’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘getMenuItemTitle’
# 282| const char *
# 283| getMenuItemTitle (const MenuItem *item) {
# 284|-> return getLocalizedText(item->title);
# 285| }
# 286|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def229]
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘newMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c:325:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 323| MenuItem *item = getMenuItem(menu, menu->items.count++);
# 324|
# 325|-> item->menu = menu;
# 326| item->setting = setting;
# 327|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def230]
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c:1023:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘changeMenuSettingNext’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘changeMenuSettingNext’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘changeMenuSettingNext’
# 1021| static int
# 1022| activateMenuItem (MenuItem *item) {
# 1023|-> if (!item->methods->activateItem) return 0;
# 1024| item->methods->activateItem(item);
# 1025| return 1;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def231]
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c:1129:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*menu.activeItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
# 1127| MenuItem *item = getCurrentMenuItem(menu);
# 1128|
# 1129|-> if (item->methods != &menuItemMethods_submenu) break;
# 1130| if (!item->data.submenu->opened) break;
# 1131| menu = item->data.submenu->menu;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def232]
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c:1129:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
# 1127| MenuItem *item = getCurrentMenuItem(menu);
# 1128|
# 1129|-> if (item->methods != &menuItemMethods_submenu) break;
# 1130| if (!item->data.submenu->opened) break;
# 1131| menu = item->data.submenu->menu;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c: scope_hint: In function ‘makePreferencesMenu’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1545:26: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:676:5: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:680:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:680:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:684:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:689:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:694:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:699:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:699:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:70:15: note: in definition of macro ‘PROPERTY’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:709:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:710:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:715:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:716:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:727:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:728:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:739:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:740:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:754:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:755:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:761:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:765:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:770:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:770:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:771:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:776:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:777:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:783:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:784:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:791:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:792:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:798:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:803:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:804:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:810:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:811:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:818:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:819:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:825:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:70:15: note: in definition of macro ‘PROPERTY’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:72:46: note: in expansion of macro ‘MSECS2PREFS’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:830:7: note: in expansion of macro ‘BLINK_PERIOD’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:831:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:832:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:839:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:840:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:846:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:850:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:855:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:856:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:861:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:872:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:872:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:877:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:882:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:883:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:888:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:889:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:894:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:907:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:907:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:912:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:924:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:929:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:934:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:934:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:938:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:948:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:948:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:953:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:958:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:958:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:970:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:970:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:971:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:976:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:981:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:982:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:987:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:988:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:993:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:994:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1000:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1001:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1006:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1007:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1020:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1021:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1027:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1028:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1034:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1038:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1039:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1045:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1046:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1052:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1053:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1065:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1066:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1100:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1101:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1107:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1112:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1286:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1286:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1295:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1295:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1305:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1305:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1310:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1321:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1321:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1332:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1332:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1333:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1344:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1345:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1350:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1360:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1360:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1361:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1367:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1368:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1382:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1383:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1389:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:29: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1389:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1389:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1403:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1403:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1407:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1408:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1414:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1415:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1421:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1422:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1428:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1431:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1432:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1438:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1443:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1448:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1453:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1458:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1463:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1468:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1473:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1478:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1483:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1488:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1493:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1498:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1514:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1514:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1519:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1524:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1524:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1529:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1529:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1533:7: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1533:7: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1550:15: note: in expansion of macro ‘ITEM’
# 1543| MenuString *name;
# 1544|
# 1545|-> if (!(name = malloc(sizeof(*name)))) goto noItem;
# 1546| memset(name, 0, sizeof(*name));
# 1547| name->label = description;
Error: CLANG_WARNING: [#def234]
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1550:15: warning[unix.Malloc]: Potential leak of memory pointed to by 'name'
# 1548|
# 1549| {
# 1550|-> ITEM(newBooleanMenuItem(logCategoriesSubmenu, &logCategoryFlags[category], name));
# 1551|
# 1552| switch (category) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1595:21: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:676:5: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:680:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:680:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:684:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:689:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:694:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:699:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:699:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:70:15: note: in definition of macro ‘PROPERTY’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:709:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:710:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:715:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:716:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:727:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:728:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:739:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:740:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:754:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:755:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:761:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:765:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:770:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:770:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:771:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:776:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:777:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:783:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:784:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:791:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:792:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:798:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:803:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:804:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:810:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:811:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:818:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:819:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:825:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:70:15: note: in definition of macro ‘PROPERTY’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:72:46: note: in expansion of macro ‘MSECS2PREFS’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:830:7: note: in expansion of macro ‘BLINK_PERIOD’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:831:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:832:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:839:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:840:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:846:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:850:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:855:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:856:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:861:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:872:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:872:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:877:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:882:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:883:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:888:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:889:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:894:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:907:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:907:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:912:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:924:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:929:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:934:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:934:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:938:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:948:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:948:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:953:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:958:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:958:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:970:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:970:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:971:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:976:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:981:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:982:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:987:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:988:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:993:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:994:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1000:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1001:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1006:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1007:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1020:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1021:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1027:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1028:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1034:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1038:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1039:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1045:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1046:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1052:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1053:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1065:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1066:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1100:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1101:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1107:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1112:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1286:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1286:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1295:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1295:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1305:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1305:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1310:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1321:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1321:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1332:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1332:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1333:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1344:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1345:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1350:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1360:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1360:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1361:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1367:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1368:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1382:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1383:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1389:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1389:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1389:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1403:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1403:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1407:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1408:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1414:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1415:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1421:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1422:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1428:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1431:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1432:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1438:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1443:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1448:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1453:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1458:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1463:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1468:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1473:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1478:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1483:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1488:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1493:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1498:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1514:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1514:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1519:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1524:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1524:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1529:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1529:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1533:7: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1533:7: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1550:15: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1572:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1572:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1577:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/minimal/Programs/menu_prefs.c:1589:7: note: in expansion of macro ‘ITEM’
# 1593| {
# 1594| NAME(strtext("Log Messages"));
# 1595|-> logMessagesMenu = newSubmenuMenuItem(rootMenu, &itemName);
# 1596| }
# 1597|
Error: CPPCHECK_WARNING: [#def236]
brltty-6.6-build/brltty-6.6/minimal/Programs/message.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def237]
brltty-6.6-build/brltty-6.6/minimal/Programs/message.c: scope_hint: In function ‘message’
brltty-6.6-build/brltty-6.6/minimal/Programs/message.c:250:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘((unsigned char*)&*mgp)[12]’
brltty-6.6-build/brltty-6.6/minimal/Headers/async_task.h:22: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Programs/message.c:29: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Headers/async_types_task.h:26:40: note: in definition of macro ‘ASYNC_TASK_CALLBACK’
# 248| mgp->deallocate = 0;
# 249| presentMessage(mgp);
# 250|-> if (mgp->presented) presented = 1;
# 251| } else {
# 252| mgp->deallocate = 1;
Error: CPPCHECK_WARNING: [#def238]
brltty-6.6-build/brltty-6.6/minimal/Programs/messages.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def239]
brltty-6.6-build/brltty-6.6/minimal/Programs/messages.c: scope_hint: In function ‘makeLocaleDirectoryPath’
brltty-6.6-build/brltty-6.6/minimal/Programs/messages.c:136:19: warning[-Wanalyzer-null-argument]: use of NULL ‘localeSpecifier’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 134| static char *
# 135| makeLocaleDirectoryPath (void) {
# 136|-> size_t length = strlen(localeSpecifier);
# 137|
# 138| char dialect[length + 1];
Error: CLANG_WARNING: [#def240]
brltty-6.6-build/brltty-6.6/minimal/Programs/messages.c:216:49: warning[unix.Malloc]: Potential leak of memory pointed to by 'header'
# 214| header->translatedMessages = header->sourceMessages;
# 215|
# 216|-> if (setMessageCatalog(header, size)) return 1;
# 217| free(header);
# 218| } else {
Error: CPPCHECK_WARNING: [#def241]
brltty-6.6-build/brltty-6.6/minimal/Programs/mntpt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def242]
brltty-6.6-build/brltty-6.6/minimal/Programs/notes_pcm.c:218: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 216| * high-order (sign) bit is set.
# 217| */
# 218|-> int32_t amplitude = currentValue ^ (currentValue >> 31);
# 219|
# 220| /* Convert the 31-bit amplitude from unsigned to signed. */
Error: CPPCHECK_WARNING: [#def243]
brltty-6.6-build/brltty-6.6/minimal/Programs/params_linux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def244]
brltty-6.6-build/brltty-6.6/minimal/Programs/parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def245]
brltty-6.6-build/brltty-6.6/minimal/Programs/parse.c:284:5: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 282|
# 283| const Entry *entry = choice;
# 284|-> const char *name = entry->name;
# 285| if (!name) break;
# 286|
Error: CPPCHECK_WARNING: [#def246]
brltty-6.6-build/brltty-6.6/minimal/Programs/pgmprivs_linux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def247]
brltty-6.6-build/brltty-6.6/minimal/Programs/prefs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def248]
brltty-6.6-build/brltty-6.6/minimal/Programs/profile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def249]
brltty-6.6-build/brltty-6.6/minimal/Programs/program.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def250]
brltty-6.6-build/brltty-6.6/minimal/Programs/rgx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def251]
brltty-6.6-build/brltty-6.6/minimal/Programs/routing.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def252]
brltty-6.6-build/brltty-6.6/minimal/Programs/scr_base.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def253]
brltty-6.6-build/brltty-6.6/minimal/Programs/scr_menu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def254]
brltty-6.6-build/brltty-6.6/minimal/Programs/serial.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def255]
brltty-6.6-build/brltty-6.6/minimal/Programs/serial_termios.c:222: error[uninitvar]: Uninitialized variable: size
# 220|
# 221| attributes->c_cflag &= ~CSIZE;
# 222|-> attributes->c_cflag |= size;
# 223| return 1;
# 224| }
Error: CPPCHECK_WARNING: [#def256]
brltty-6.6-build/brltty-6.6/minimal/Programs/system_linux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def257]
brltty-6.6-build/brltty-6.6/minimal/Programs/tbl2hex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def258]
brltty-6.6-build/brltty-6.6/minimal/Programs/ttb_gnome.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def259]
brltty-6.6-build/brltty-6.6/minimal/Programs/ttb_louis.c:122:12: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 120|
# 121| if (getDots(file, &dots, "braille representation")) {
# 122|-> if (!setTextTableCharacter(ttd, characters[0], dots)) return 0;
# 123| if (!setTextTableCharacter(ttd, characters[1], dots)) return 0;
# 124| }
Error: CLANG_WARNING: [#def260]
brltty-6.6-build/brltty-6.6/minimal/Programs/ttb_louis.c:123:12: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 121| if (getDots(file, &dots, "braille representation")) {
# 122| if (!setTextTableCharacter(ttd, characters[0], dots)) return 0;
# 123|-> if (!setTextTableCharacter(ttd, characters[1], dots)) return 0;
# 124| }
# 125| }
Error: CPPCHECK_WARNING: [#def261]
brltty-6.6-build/brltty-6.6/minimal/Programs/ttb_native.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def262]
brltty-6.6-build/brltty-6.6/minimal/Programs/ttb_translate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def263]
brltty-6.6-build/brltty-6.6/minimal/Programs/update.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def264]
brltty-6.6-build/brltty-6.6/minimal/Programs/update.c:139:11: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 137| const ScreenCharacter *character, unsigned char *cell, wchar_t *text
# 138| ) {
# 139|-> *cell = convertCharacterToDots(textTable, character->text);
# 140| *text = character->text;
# 141|
Error: CLANG_WARNING: [#def265]
brltty-6.6-build/brltty-6.6/minimal/Programs/update.c:172:42: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 170| const ScreenCharacter *character, unsigned char *cell, wchar_t *text
# 171| ) {
# 172|-> *text = UNICODE_BRAILLE_ROW | (*cell = convertAttributesToDots(attributesTable, character->attributes));
# 173| }
# 174|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
brltty-6.6-build/brltty-6.6/minimal/Programs/update.c: scope_hint: In function ‘ensureContractedOffsetsSize’
brltty-6.6-build/brltty-6.6/minimal/Programs/update.c:267:34: warning[-Wanalyzer-malloc-leak]: leak of ‘newArrayets’
brltty-6.6-build/brltty-6.6/minimal/Headers/async_alarm.h:22: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Programs/update.c:31: included_from: Included from here.
brltty-6.6-build/brltty-6.6/minimal/Headers/async_types_alarm.h:33:41: note: in definition of macro ‘ASYNC_ALARM_CALLBACK’
# 265|
# 266| brd->contracted.offsets.array = newArrayets;
# 267|-> brd->contracted.offsets.size = newSize;
# 268| }
# 269|
Error: CPPCHECK_WARNING (CWE-457): [#def267]
brltty-6.6-build/brltty-6.6/minimal/Programs/update.c:300: warning[uninitvar]: Uninitialized variable: inputText
# 298| contractText(
# 299| contractionTable, &brd->contracted.cache,
# 300|-> inputText, &inputLength,
# 301| cells, &outputLength,
# 302| offsetsArray, getCursorOffsetForContracting()
Error: CPPCHECK_WARNING (CWE-457): [#def268]
brltty-6.6-build/brltty-6.6/minimal/Programs/update.c:723: warning[uninitvar]: Uninitialized variable: characters
# 721| }
# 722|
# 723|-> return writeBrailleCharacters(mode, characters, length);
# 724| }
# 725|
Error: CLANG_WARNING: [#def269]
brltty-6.6-build/brltty-6.6/minimal/Programs/update.c:746:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 744| }
# 745|
# 746|-> memcpy(*buffer, characters, newSize);
# 747| return 1;
# 748| }
Error: CPPCHECK_WARNING: [#def270]
brltty-6.6-build/brltty-6.6/minimal/Programs/usb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def271]
brltty-6.6-build/brltty-6.6/minimal/Programs/usb.c: scope_hint: In function ‘usbConfigurationDescriptor’
brltty-6.6-build/brltty-6.6/minimal/Programs/usb.c:461:64: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘descriptor.configuration.wTotalLength’
brltty-6.6-build/brltty-6.6/minimal/Programs/usb.c: scope_hint: In function ‘usbConfigurationDescriptor’
brltty-6.6-build/brltty-6.6/minimal/Programs/usb.c: scope_hint: In function ‘usbConfigurationDescriptor’
# 459|
# 460| if (number < device->descriptor.bNumConfigurations) {
# 461|-> int length = getLittleEndian16(descriptor.configuration.wTotalLength);
# 462| UsbDescriptor *descriptors;
# 463|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
brltty-6.6-build/brltty-6.6/minimal/Programs/usb.c:490:16: warning[-Wanalyzer-malloc-leak]: leak of ‘descriptors’
# 488| }
# 489|
# 490|-> return device->configuration;
# 491| }
# 492|
Error: CLANG_WARNING: [#def273]
brltty-6.6-build/brltty-6.6/minimal/Programs/usb.c:1014:5: warning[core.NullDereference]: Access to field 'destroyData' results in a dereference of a null pointer (loaded from field 'operations')
# 1012|
# 1013| if (device->serial.data) {
# 1014|-> device->serial.operations->destroyData(device->serial.data);
# 1015| device->serial.data = NULL;
# 1016| }
Error: CLANG_WARNING: [#def274]
brltty-6.6-build/brltty-6.6/minimal/Programs/usb.c:1352:9: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 1350|
# 1351| if (length < count) count = length;
# 1352|-> memcpy(target, endpoint->direction.input.completed.buffer, count);
# 1353|
# 1354| if ((endpoint->direction.input.completed.length -= count)) {
Error: CLANG_WARNING: [#def275]
brltty-6.6-build/brltty-6.6/minimal/Programs/usb.c:1693:33: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 1691|
# 1692| {
# 1693|-> uint16_t vendorIdentifier = getLittleEndian16(descriptor.idVendor);
# 1694|
# 1695| if (vendorIdentifier) {
Error: CPPCHECK_WARNING: [#def276]
brltty-6.6-build/brltty-6.6/minimal/Programs/usb_ch341.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def277]
brltty-6.6-build/brltty-6.6/minimal/Programs/usb_cp2101.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def278]
brltty-6.6-build/brltty-6.6/minimal/Programs/usb_linux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def279]
brltty-6.6-build/brltty-6.6/minimal/Programs/usb_linux.c:1293: error[uninitvar]: Uninitialized variable: &length
# 1291| char path[strlen(*format) + (2 * 0X10) + 1];
# 1292|
# 1293|-> snprintf(path, sizeof(path), *format, &length, bus, device, minor);
# 1294| path[length] = 0;
# 1295|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
brltty-6.6-build/brltty-6.6/minimal/Programs/usb_linux.c: scope_hint: In function ‘usbReadHostDeviceDescriptor’
brltty-6.6-build/brltty-6.6/minimal/Programs/usb_linux.c:1347:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 1345|
# 1346| if (file != -1) {
# 1347|-> int count = read(file, &host->usbDescriptor, UsbDescriptorSize_Device);
# 1348|
# 1349| if (count == -1) {
Error: CPPCHECK_WARNING: [#def281]
brltty-6.6-build/brltty-6.6/minimal/Programs/usb_serial.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def282]
brltty-6.6-build/brltty-6.6/minimal/Programs/utf8.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def283]
brltty-6.6-build/brltty-6.6/minimal/Programs/variables.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def284]
brltty-6.6-build/brltty-6.6/minimal/Programs/xbrlapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def285]
brltty-6.6-build/brltty-6.6/minimal/Programs/xbrlapi.c:381:11: warning[core.NullDereference]: Access to field 'win' results in a dereference of a null pointer (loaded from variable 'cur')
# 379| if (!(cur=malloc(sizeof(struct window))))
# 380| fatal_errno("malloc(struct window)",NULL);
# 381|-> cur->win=win;
# 382| cur->wm_name=wm_name;
# 383| cur->root=root;
Error: CPPCHECK_WARNING: [#def286]
brltty-6.6-build/brltty-6.6/python3/Bindings/Java/bindings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def287]
brltty-6.6-build/brltty-6.6/python3/Bindings/Java/bindings.c:1270: warning[uninitvar]: Uninitialized variable: booleans
Error: CPPCHECK_WARNING: [#def288]
brltty-6.6-build/brltty-6.6/python3/Bindings/Lua/bindings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def289]
brltty-6.6-build/brltty-6.6/python3/Bindings/Lua/bindings.c:460:37: warning[core.NullDereference]: Array access (from variable 'codes') results in a null pointer dereference
# 458| lua_newtable(L);
# 459| for (size_t i = 0; i < count; i += 1) {
# 460|-> lua_pushinteger(L, (lua_Integer)codes[i]);
# 461| lua_rawseti(L, -2, i + 1);
# 462| }
Error: CLANG_WARNING: [#def290]
brltty-6.6-build/brltty-6.6/python3/Bindings/Lua/bindings.c:491:37: warning[core.NullDereference]: Array access (from variable 'codes') results in a null pointer dereference
# 489| lua_newtable(L);
# 490| for (size_t i = 0; i < count; i += 1) {
# 491|-> lua_pushinteger(L, (lua_Integer)codes[i]);
# 492| lua_rawseti(L, -2, i + 1);
# 493| }
Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
brltty-6.6-build/brltty-6.6/python3/Bindings/Python/bindings.c: scope_hint: In function ‘brlapi_pythonExceptionHandler’
brltty-6.6-build/brltty-6.6/python3/Bindings/Python/bindings.c:70:5: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(&str)’
# 68| else
# 69| #endif
# 70|-> pthread_setspecific(brlapi_protocolExceptionKey, strdup(str));
# 71| }
# 72|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def292]
brltty-6.6-build/brltty-6.6/python3/Bindings/Python/bindings.c: scope_hint: In function ‘brlapi_python_watchParameter’
brltty-6.6-build/brltty-6.6/python3/Bindings/Python/bindings.c:146:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘descr’
/usr/include/python3.13/Python.h:68: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Bindings/Python/bindings.c:143:3: note: in expansion of macro ‘Py_INCREF’
brltty-6.6-build/brltty-6.6/python3/Bindings/Python/bindings.c: scope_hint: In function ‘brlapi_python_watchParameter’
# 144|
# 145| descr = malloc(sizeof(*descr));
# 146|-> descr->callback = func;
# 147|
# 148| brlapi_descr = brlapi__watchParameter(handle, param, subparam, flags, brlapi_python_parameter_callback, descr, NULL, 0);
Error: CPPCHECK_WARNING: [#def293]
brltty-6.6-build/brltty-6.6/python3/Bindings/Tcl/bindings.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def294]
brltty-6.6-build/brltty-6.6/python3/Bindings/Tcl/bindings.c:447: warning[uninitvar]: Uninitialized variable: path
# 445| }
# 446|
# 447|-> TEST_BRLAPI_OK(brlapi__enterTtyModeWithPath(session->handle, path, count, options.driver));
# 448| } else {
# 449| TEST_BRLAPI_OK(brlapi__enterTtyModeWithPath(session->handle, NULL, 0, options.driver));
Error: CPPCHECK_WARNING (CWE-457): [#def295]
brltty-6.6-build/brltty-6.6/python3/Bindings/Tcl/bindings.c:667: warning[uninitvar]: Uninitialized variable: buffer
# 665| }
# 666|
# 667|-> TEST_BRLAPI_OK(brlapi__setParameter(session->handle, parameter, subparam, options.flags, buffer, sizeof(buffer)));
# 668| break;
# 669| }
Error: CPPCHECK_WARNING (CWE-457): [#def296]
brltty-6.6-build/brltty-6.6/python3/Bindings/Tcl/bindings.c:680: warning[uninitvar]: Uninitialized variable: buffer
# 678| }
# 679|
# 680|-> TEST_BRLAPI_OK(brlapi__setParameter(session->handle, parameter, subparam, options.flags, buffer, sizeof(buffer)));
# 681| break;
# 682| }
Error: CPPCHECK_WARNING (CWE-457): [#def297]
brltty-6.6-build/brltty-6.6/python3/Bindings/Tcl/bindings.c:693: warning[uninitvar]: Uninitialized variable: buffer
# 691| }
# 692|
# 693|-> TEST_BRLAPI_OK(brlapi__setParameter(session->handle, parameter, subparam, options.flags, buffer, sizeof(buffer)));
# 694| break;
# 695| }
Error: CPPCHECK_WARNING (CWE-457): [#def298]
brltty-6.6-build/brltty-6.6/python3/Bindings/Tcl/bindings.c:706: warning[uninitvar]: Uninitialized variable: buffer
# 704| }
# 705|
# 706|-> TEST_BRLAPI_OK(brlapi__setParameter(session->handle, parameter, subparam, options.flags, buffer, sizeof(buffer)));
# 707| break;
# 708| }
Error: CPPCHECK_WARNING (CWE-457): [#def299]
brltty-6.6-build/brltty-6.6/python3/Bindings/Tcl/bindings.c:719: warning[uninitvar]: Uninitialized variable: buffer
# 717| }
# 718|
# 719|-> TEST_BRLAPI_OK(brlapi__setParameter(session->handle, parameter, subparam, options.flags, buffer, sizeof(buffer)));
# 720| break;
# 721| }
Error: CPPCHECK_WARNING (CWE-457): [#def300]
brltty-6.6-build/brltty-6.6/python3/Bindings/Tcl/bindings.c:1570: warning[uninitvar]: Uninitialized variable: cells
# 1568| }
# 1569|
# 1570|-> setByteArrayResult(interp, cells, elementCount);
# 1571| } else {
# 1572| setByteArrayResult(interp, NULL, elementCount);
Error: CPPCHECK_WARNING: [#def301]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Albatross/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def302]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-127): [#def303]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c:112: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c: scope_hint: In function ‘logVersion2’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c:1211:22: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c:1211:5: note: in expansion of macro ‘STR_PRINTF’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c: scope_hint: In function ‘logVersion2’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c: scope_hint: In function ‘logVersion2’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:62:32: note: in expansion of macro ‘STR_LEFT’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c:1217:5: note: in expansion of macro ‘STR_PRINTF’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:62:32: note: in expansion of macro ‘STR_LEFT’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c:1217:5: note: in expansion of macro ‘STR_PRINTF’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:62:32: note: in expansion of macro ‘STR_LEFT’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c:1217:5: note: in expansion of macro ‘STR_PRINTF’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c:1211:5: note: in expansion of macro ‘STR_PRINTF’
# └────────────────────────────────┘
# ^
# 1209|
# 1210| while (1) {
# 1211|-> STR_PRINTF("%u", *byte);
# 1212| if (byte == overlay.bytes) break;
# 1213|
Error: GCC_ANALYZER_WARNING (CWE-124): [#def304]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c:1214:11: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c: scope_hint: In function ‘logVersion2’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c: scope_hint: In function ‘logVersion2’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:62:32: note: in expansion of macro ‘STR_LEFT’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c:1217:5: note: in expansion of macro ‘STR_PRINTF’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:62:32: note: in expansion of macro ‘STR_LEFT’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c:1217:5: note: in expansion of macro ‘STR_PRINTF’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:48:23: note: in definition of macro ‘STR_ADJUST’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:62:32: note: in expansion of macro ‘STR_LEFT’
brltty-6.6-build/brltty-6.6/python3/Headers/strfmt.h:65:1: note: in expansion of macro ‘STR_FORMAT’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Alva/braille.c:1217:5: note: in expansion of macro ‘STR_PRINTF’
# 1212| if (byte == overlay.bytes) break;
# 1213|
# 1214|-> *byte = 0;
# 1215| if (!overlay.u32) break;
# 1216|
Error: GCC_ANALYZER_WARNING (CWE-775): [#def305]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/B2G/braille.c: scope_hint: In function ‘openBrailleDevice’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/B2G/braille.c:284:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/braille0", 1)’
# 282| static int
# 283| openBrailleDevice (BrailleDisplay *brl) {
# 284|-> if ((brl->data->braille.fileDescriptor = open(BRAILLE_DEVICE_PATH, O_WRONLY)) != -1) {
# 285| return 1;
# 286| } else {
Error: CPPCHECK_WARNING: [#def306]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Baum/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def307]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/BrailleLite/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def308]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/BrailleMemo/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def309]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/BrlAPI/braille.c:207:5: warning[core.VLASize]: Declared variable-length array (VLA) has zero size
# 205| }
# 206|
# 207|-> unsigned char and[displaySize];
# 208| memset(and, 0, sizeof(and));
# 209| arguments.andMask = and;
Error: CPPCHECK_WARNING: [#def310]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/DotPad/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/DotPad/braille.c: scope_hint: In function ‘makeArrays’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/DotPad/braille.c:396:6: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)*brl_43(D)->data.display.externalRows, (long unsigned int)*brl_43(D)->data.display.externalColumns)’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/DotPad/braille.c: scope_hint: In function ‘makeArrays’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/DotPad/braille.c: scope_hint: In function ‘makeArrays’
# 394| static int
# 395| makeArrays (BrailleDisplay *brl) {
# 396|-> if ((brl->data->arrays.externalCells = calloc(brl->data->display.externalRows, brl->data->display.externalColumns))) {
# 397| if ((brl->data->arrays.internalCells = calloc(brl->data->display.internalRows, brl->data->display.internalColumns))) {
# 398| if ((brl->data->arrays.externalRows = malloc(ARRAY_SIZE(brl->data->arrays.externalRows, brl->data->display.externalRows)))) {
Error: GCC_ANALYZER_WARNING (CWE-688): [#def312]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/DotPad/braille.c: scope_hint: In function ‘writeRequest’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/DotPad/braille.c:499:23: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/DotPad/braille.c:21: included_from: Included from here.
/usr/include/string.h:400:14: note: argument 2 of ‘mempcpy’ must be non-null
# 497| packet.fields.seq = 0;
# 498|
# 499|-> uint8_t *checksum = mempcpy(packet.fields.data, data, size);
# 500| uint16_t length = (checksum - &packet.fields.destination) + 1;
# 501| putUint16(packet.fields.length, length);
Error: CLANG_WARNING: [#def313]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/DotPad/braille.c:499:23: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 497| packet.fields.seq = 0;
# 498|
# 499|-> uint8_t *checksum = mempcpy(packet.fields.data, data, size);
# 500| uint16_t length = (checksum - &packet.fields.destination) + 1;
# 501| putUint16(packet.fields.length, length);
Error: GCC_ANALYZER_WARNING (CWE-121): [#def314]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/DotPad/braille.c: scope_hint: In function ‘updateKeyGroup’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/DotPad/braille.c:867:24: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
# 865|
# 866| while (dataSize < arraySize) {
# 867|-> data[dataSize++] = 0;
# 868| }
# 869|
Error: CLANG_WARNING: [#def315]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EcoBraille/braille.c:269:3: warning[deadcode.DeadStores]: Value stored to 'byte' is never read
# 267|
# 268| /* Make main info to rawdata */
# 269|-> byte = translateOutputCells(byte, brl->buffer, brl->textColumns);
# 270|
# 271| /* Write to Braille Display */
Error: CLANG_WARNING: [#def316]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EcoBraille/braille.c:297:7: warning[deadcode.DeadStores]: Although the value stored to 'bytes' is used in the enclosing expression, the value is never actually read from 'bytes'
# 295|
# 296| /* Read info from Braille Line */
# 297|-> if((bytes = serialReadData(serialDevice, buff, 18, 0, 0)) >= 9){
# 298|
# 299| #ifdef DEBUG
Error: CPPCHECK_WARNING: [#def317]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eu_clio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def318]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eu_clio.c:411:26: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 409| for (i=1; i<offset; i+=1)
# 410| {
# 411|-> parity ^= buffer[i];
# 412| }
# 413| }
Error: CLANG_WARNING: [#def319]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eu_clio.c:431:32: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 429| }
# 430|
# 431|-> if (buffer[--offset] == inputPacketNumber)
# 432| {
# 433| offset = 0;
Error: CLANG_WARNING: [#def320]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eu_clio.c:431:32: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value due to array index out of bounds
# 429| }
# 430|
# 431|-> if (buffer[--offset] == inputPacketNumber)
# 432| {
# 433| offset = 0;
Error: CLANG_WARNING: [#def321]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eu_clio.c:580:24: warning[core.NullDereference]: Dereference of null pointer
# 578|
# 579| {
# 580|-> wchar_t wc = *source++;
# 581| if (!iswLatin1(wc)) wc = '?';
# 582| *target++ = wc;
Error: CPPCHECK_WARNING: [#def322]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_brl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def323]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_brl.c: scope_hint: In function ‘brl_message’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_brl.c:200:8: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buffer’
# 198| unsigned char* p = buffer;
# 199|
# 200|-> *p++ = 'D';
# 201| *p++ = 'M';
# 202| while (*q)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def324]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_brl.c: scope_hint: In function ‘showbrfile’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_brl.c:224:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
# 222| unsigned char* str = malloc(256); /* the string to display */
# 223|
# 224|-> buf[0] = '\005';
# 225| buf[1] = 'F';
# 226| buf[2] = 'N';
Error: CLANG_WARNING: [#def325]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_brl.c:241:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'str'
# 239| if (!strncmp((char*)buf, "\003FE", 3))
# 240| {
# 241|-> env->brfilenum--;
# 242| return 0;
# 243| }
Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_brl.c:242:14: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
# 240| {
# 241| env->brfilenum--;
# 242|-> return 0;
# 243| }
# 244| strcpy((char*)str, env->brpc ? "BR>PC " : "PC>BR ");
Error: GCC_ANALYZER_WARNING (CWE-688): [#def327]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_brl.c:244:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘str’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 242| return 0;
# 243| }
# 244|-> strcpy((char*)str, env->brpc ? "BR>PC " : "PC>BR ");
# 245| strncat((char*)str, ((char*)&(buf[6])), buf[0] - 5);
# 246| strcat((char*)str, ".");
Error: CPPCHECK_WARNING: [#def328]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def329]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘dos2unix’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:53:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tmpmap’
# 51| }
# 52| for (i = 0; i < size; i++)
# 53|-> tmpmap[i] = (*map)[i];
# 54| p = tmpmap;
# 55| p2 = tmpmap2;
Error: CLANG_WARNING: [#def330]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:53:15: warning[core.NullDereference]: Array access (from variable 'tmpmap') results in a null pointer dereference
# 51| }
# 52| for (i = 0; i < size; i++)
# 53|-> tmpmap[i] = (*map)[i];
# 54| p = tmpmap;
# 55| p2 = tmpmap2;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def331]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:61:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 59| for (i = 0; i < newsize; i++)
# 60| {
# 61|-> (*map)[i] = tmpmap2[i];
# 62| }
# 63| free(tmpmap);
Error: CLANG_WARNING: [#def332]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:61:19: warning[core.NullDereference]: Array access (from variable 'tmpmap2') results in a null pointer dereference
# 59| for (i = 0; i < newsize; i++)
# 60| {
# 61|-> (*map)[i] = tmpmap2[i];
# 62| }
# 63| free(tmpmap);
Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:81:14: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
# 79| {
# 80| perror("open");
# 81|-> return 0;
# 82| }
# 83| fstat(fd, &st);
Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘k2txt’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:81:14: warning[-Wanalyzer-malloc-leak]: leak of ‘newmap’
# 79| {
# 80| perror("open");
# 81|-> return 0;
# 82| }
# 83| fstat(fd, &st);
Error: COMPILER_WARNING (CWE-252): [#def335]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘k2txt’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:87:3: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 87 | read(fd, map, size);
# | ^~~~~~~~~~~~~~~~~~~
# 85| map = malloc(size + 1);
# 86| newmap = malloc(size + 1);
# 87|-> read(fd, map, size);
# 88| map[size] = 0;
# 89| close(fd);
Error: CLANG_WARNING: [#def336]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:92:7: warning[unix.Malloc]: Potential leak of memory pointed to by 'newmap'
# 90| if ((fd = open(destfile, O_WRONLY | O_CREAT | O_TRUNC, 0600)) == -1)
# 91| {
# 92|-> perror("open");
# 93| return 0;
# 94| }
Error: CPPCHECK_WARNING (CWE-401): [#def337]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:93: error[memleak]: Memory leak: newmap
# 91| {
# 92| perror("open");
# 93|-> return 0;
# 94| }
# 95| while (flg_hdr)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def338]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:97:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘map’
# 95| while (flg_hdr)
# 96| {
# 97|-> if (map[i] == 'R' && map[ i - 1] == '\x0b')
# 98| flg_hdr = 2;
# 99| if (flg_hdr == 2 && map[i] == '$' && map[i - 1] == '\x1b')
Error: CLANG_WARNING: [#def339]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:102:4: warning[deadcode.DeadStores]: Value stored to 'flg_hdr' is never read
# 100| {
# 101| i++;
# 102|-> flg_hdr = 0;
# 103| break;
# 104| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def340]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:111:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
# 109| {
# 110| if (map[i] == 'P' && map[i - 1] == '\x1b')
# 111|-> newmap[o++] = '\n';
# 112| if (map[i] == 'L' && map[i - 1] == '\x1b')
# 113| newmap[o++] = '\n';
Error: GCC_ANALYZER_WARNING (CWE-476): [#def341]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:113:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
# 111| newmap[o++] = '\n';
# 112| if (map[i] == 'L' && map[i - 1] == '\x1b')
# 113|-> newmap[o++] = '\n';
# 114| if (map[i] == '\x1b' && map[i - 1] == '\x1b')
# 115| newmap[o++] = '\x1b';
Error: GCC_ANALYZER_WARNING (CWE-476): [#def342]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:115:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
# 113| newmap[o++] = '\n';
# 114| if (map[i] == '\x1b' && map[i - 1] == '\x1b')
# 115|-> newmap[o++] = '\x1b';
# 116| if (map[i] != '\x1b' && map[i - 1] != '\x1b')
# 117| newmap[o++] = map[i];
Error: GCC_ANALYZER_WARNING (CWE-476): [#def343]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:117:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘newmap’
# 115| newmap[o++] = '\x1b';
# 116| if (map[i] != '\x1b' && map[i - 1] != '\x1b')
# 117|-> newmap[o++] = map[i];
# 118| i++;
# 119| }
Error: COMPILER_WARNING (CWE-252): [#def344]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:122:3: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
# 122 | write(fd, newmap, size);
# | ^~~~~~~~~~~~~~~~~~~~~~~
# 120| /* Convert text into the current charset */
# 121| size = dos2unix(env, &newmap, o);
# 122|-> write(fd, newmap, size);
# 123| free(map);
# 124| free(newmap);
Error: CPPCHECK_WARNING (CWE-686): [#def345]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:146: error[invalidFunctionArgBool]: Invalid toupper() argument nr 1. A non-boolean value is required.
# 144| /* Reconnaissance de l'extension */
# 145| i = strlen((char*)name);
# 146|-> if (name[i - 2] == '.' && (toupper(name[i - 1] == 'K')
# 147| || toupper(name[i - 1]) == 'T'
# 148| || toupper(name[i - 1] == 'A')
Error: CPPCHECK_WARNING (CWE-686): [#def346]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:148: error[invalidFunctionArgBool]: Invalid toupper() argument nr 1. A non-boolean value is required.
# 146| if (name[i - 2] == '.' && (toupper(name[i - 1] == 'K')
# 147| || toupper(name[i - 1]) == 'T'
# 148|-> || toupper(name[i - 1] == 'A')
# 149| || toupper(name[i - 1] == 'L')
# 150| || toupper(name[i - 1]) == 'B'))
Error: CPPCHECK_WARNING (CWE-686): [#def347]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:149: error[invalidFunctionArgBool]: Invalid toupper() argument nr 1. A non-boolean value is required.
# 147| || toupper(name[i - 1]) == 'T'
# 148| || toupper(name[i - 1] == 'A')
# 149|-> || toupper(name[i - 1] == 'L')
# 150| || toupper(name[i - 1]) == 'B'))
# 151| {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘txt2k’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:186:14: warning[-Wanalyzer-malloc-leak]: leak of ‘map’
# 184| {
# 185| perror("open");
# 186|-> return 0;
# 187| }
# 188| fstat(fd, &st);
Error: COMPILER_WARNING (CWE-252): [#def349]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c: scope_hint: In function ‘txt2k’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:191:3: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
# 191 | read(fd, map, size);
# | ^~~~~~~~~~~~~~~~~~~
# 189| size = st.st_size;
# 190| map = malloc(size + 1);
# 191|-> read(fd, map, size);
# 192| map[size] = 0;
# 193| close(fd);
Error: CLANG_WARNING: [#def350]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_convert.c:194:8: warning[deadcode.DeadStores]: Although the value stored to 'fd' is used in the enclosing expression, the value is never actually read from 'fd'
# 192| map[size] = 0;
# 193| close(fd);
# 194|-> if ((fd = open(destfile, O_WRONLY | O_CREAT | O_TRUNC, 0600)) == -1)
# 195| {
# 196| perror("open");
Error: CPPCHECK_WARNING: [#def351]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_transfer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-252): [#def352]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_transfer.c: scope_hint: In function ‘brtopc’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/EuroBraille/eutp_transfer.c:123:7: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
# 123 | write(fd, &(buf[3]), buf[0] - 2);
# | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 121| sprintf((char*)str, "... %s %d", filename, lines);
# 122| brl_message((char*)str, 0);
# 123|-> write(fd, &(buf[3]), buf[0] - 2);
# 124| lines++;
# 125| }
Error: CPPCHECK_WARNING: [#def353]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/FreedomScientific/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def354]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/HandyTech/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-121): [#def355]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/HandyTech/braille.c: scope_hint: In function ‘writeUsbData2’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/HandyTech/braille.c:846:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/HandyTech/braille.c:19: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Headers/prologue.h:52:40: note: in definition of macro ‘MIN’
# 844| report[0] = HT_HID_RPT_InData;
# 845| report[1] = count;
# 846|-> memcpy(report+2, &buffer[index], count);
# 847| memset(&report[count+2], 0, sizeof(report)-count-2);
# 848|
Error: CPPCHECK_WARNING: [#def356]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/HumanWare/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def357]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Iris/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def358]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/LogText/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def359]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/MDV/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def360]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/MDV/braille.c: scope_hint: In function ‘writePacket’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/MDV/braille.c:192:10: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/MDV/braille.c:21: included_from: Included from here.
/usr/include/string.h:400:14: note: argument 2 of ‘mempcpy’ must be non-null
# 190| packet.fields.code = code;
# 191| packet.fields.length = length;
# 192|-> byte = mempcpy(byte, data, length);
# 193|
# 194| uint16_t checksum = calculateChecksum(&packet.fields.stx, byte);
Error: CLANG_WARNING: [#def361]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/MDV/braille.c:192:10: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 190| packet.fields.code = code;
# 191| packet.fields.length = length;
# 192|-> byte = mempcpy(byte, data, length);
# 193|
# 194| uint16_t checksum = calculateChecksum(&packet.fields.stx, byte);
Error: CPPCHECK_WARNING: [#def362]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/MultiBraille/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def363]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Papenmeier/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: COMPILER_WARNING (CWE-457): [#def364]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Papenmeier/braille.c:913:28: warning[-Wmaybe-uninitialized]: ‘module.size’ may be used uninitialized
# 913 | bit += 8 - module->bit - module->size;
# | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Papenmeier/braille.c: scope_hint: In function ‘identifyTerminal2’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Papenmeier/braille.c:945:16: note: ‘module.size’ was declared here
# 945 | InputModule2 module;
# | ^~~~~~
# 911| bit += module->bit;
# 912| } else {
# 913|-> bit += 8 - module->bit - module->size;
# 914| }
# 915|
Error: CPPCHECK_WARNING: [#def365]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Pegasus/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def366]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Seika/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def367]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/TTY/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def368]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/TechniBraille/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def369]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/TechniBraille/braille.c: scope_hint: In function ‘writePacket’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/TechniBraille/braille.c:86:10: warning[-Wanalyzer-null-argument]: use of NULL ‘data’ where non-null expected
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/TechniBraille/braille.c:22: included_from: Included from here.
/usr/include/string.h:400:14: note: argument 2 of ‘mempcpy’ must be non-null
# 84| *byte++ = function;
# 85| *byte++ = count;
# 86|-> byte = mempcpy(byte, data, count);
# 87|
# 88| {
Error: CLANG_WARNING: [#def370]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/TechniBraille/braille.c:109:3: warning[core.VLASize]: Declared variable-length array (VLA) has zero size
# 107| writeBrailleCells (BrailleDisplay *brl) {
# 108| size_t count = brl->textColumns;
# 109|-> unsigned char cells[count];
# 110|
# 111| translateOutputCells(cells, brailleCells, count);
Error: CPPCHECK_WARNING: [#def371]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VideoBraille/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def372]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Virtual/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def373]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Virtual/braille.c:904: warning[uninitvar]: Uninitialized variable: columns1
# 902|
# 903| if (ok) {
# 904|-> int count1 = columns1 * rows1;
# 905| int count2 = columns2 * rows2;
# 906| unsigned char *braille;
Error: CPPCHECK_WARNING: [#def374]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VisioBraille/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def375]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VisioBraille/vstp_main.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def376]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VisioBraille/vstp_main.c: scope_hint: In function ‘Parse’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VisioBraille/vstp_main.c:95:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘keyname’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
# 93| if (!strcmp(s,"keyname")) {
# 94| keyname = (char *) malloc(strlen(c)+1);
# 95|-> strcpy(keyname,c);
# 96| } else if (!strcmp(s,"socketport")) {
# 97| socketport = (char *) malloc(strlen(c)+1);
Error: GCC_ANALYZER_WARNING (CWE-688): [#def377]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VisioBraille/vstp_main.c:98:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘socketport’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
# 96| } else if (!strcmp(s,"socketport")) {
# 97| socketport = (char *) malloc(strlen(c)+1);
# 98|-> strcpy(socketport,c);
# 99| } else if (!strcmp(s,"vbs_ext")) {
# 100| visiobases_ext = (char *) malloc(5);
Error: GCC_ANALYZER_WARNING (CWE-688): [#def378]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VisioBraille/vstp_main.c:101:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘visiobases_ext’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strncpy’ must be non-null
# 99| } else if (!strcmp(s,"vbs_ext")) {
# 100| visiobases_ext = (char *) malloc(5);
# 101|-> strncpy(visiobases_ext,c,4);
# 102| visiobases_ext[4]=0;
# 103| } else if (!strcmp(s,"vbs_dir")) {
Error: GCC_ANALYZER_WARNING (CWE-688): [#def379]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VisioBraille/vstp_main.c:105:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘visiobases_dir’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
# 103| } else if (!strcmp(s,"vbs_dir")) {
# 104| visiobases_dir = (char *) malloc(strlen(c)+1);
# 105|-> strcpy(visiobases_dir,c);
# 106| }
# 107| } else {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VisioBraille/vstp_main.c: scope_hint: In function ‘CheckOptions’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VisioBraille/vstp_main.c:147:16: warning[-Wanalyzer-malloc-leak]: leak of ‘socketport’
# 145| if (argv[n][i]=='s') {
# 146| if (++m==argc) grr(argv[0]);
# 147|-> socketport=argv[m];
# 148| }
# 149| if (argv[n][i]=='k') {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VisioBraille/vstp_main.c:151:13: warning[-Wanalyzer-malloc-leak]: leak of ‘keyname’
# 149| if (argv[n][i]=='k') {
# 150| if (++m==argc) grr(argv[0]);
# 151|-> keyname=argv[m];
# 152| }
# 153| if (argv[n][i]=='o') {
Error: CPPCHECK_WARNING: [#def382]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VisioBraille/vstp_transfer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def383]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VisioBraille/vstp_transfer.c: scope_hint: In function ‘fileput’
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/VisioBraille/vstp_transfer.c:309:3: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘f2’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strcpy’ must be non-null
# 307| if (visiobases_dir && (f[0]!='.' || (f[1]!='.' && f[1]!='/') || (f[1]=='.' && f[2]!='/'))) {
# 308| char *f2 = malloc(strlen(visiobases_dir)+1+strlen(f));
# 309|-> strcpy(f2,visiobases_dir);
# 310| strcat(f2,f);
# 311| if (tryToFind(f2, &fd)) {
Error: CPPCHECK_WARNING: [#def384]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/Voyager/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def385]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/XWindow/braille.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def386]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-401): [#def387]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c:246: error[memleakOnRealloc]: Common realloc mistake: 'curRows' nulled but not freed upon failure
# 244| static void addRows(long pos, long num) {
# 245| curNumRows += num;
# 246|-> curRows = realloc(curRows,curNumRows*sizeof(*curRows));
# 247| curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
# 248| memmove(curRows +pos+num,curRows +pos,(curNumRows-(pos+num))*sizeof(*curRows));
Error: CPPCHECK_WARNING (CWE-401): [#def388]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c:247: error[memleakOnRealloc]: Common realloc mistake: 'curRowLengths' nulled but not freed upon failure
# 245| curNumRows += num;
# 246| curRows = realloc(curRows,curNumRows*sizeof(*curRows));
# 247|-> curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
# 248| memmove(curRows +pos+num,curRows +pos,(curNumRows-(pos+num))*sizeof(*curRows));
# 249| memmove(curRowLengths+pos+num,curRowLengths+pos,(curNumRows-(pos+num))*sizeof(*curRowLengths));
Error: CPPCHECK_WARNING (CWE-401): [#def389]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c:259: error[memleakOnRealloc]: Common realloc mistake: 'curRows' nulled but not freed upon failure
# 257| memmove(curRowLengths+pos,curRowLengths+pos+num,(curNumRows-(pos+num))*sizeof(*curRowLengths));
# 258| curNumRows -= num;
# 259|-> curRows = realloc(curRows,curNumRows*sizeof(*curRows));
# 260| curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
# 261| }
Error: CPPCHECK_WARNING (CWE-401): [#def390]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c:260: error[memleakOnRealloc]: Common realloc mistake: 'curRowLengths' nulled but not freed upon failure
# 258| curNumRows -= num;
# 259| curRows = realloc(curRows,curNumRows*sizeof(*curRows));
# 260|-> curRowLengths = realloc(curRowLengths,curNumRows*sizeof(*curRowLengths));
# 261| }
# 262|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def391]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c: scope_hint: In function ‘restartTerm’
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c:670:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘curRowLengths’
/usr/include/sched.h:29: included_from: Included from here.
/usr/include/pthread.h:22: included_from: Included from here.
/usr/include/glib-2.0/glib/deprecated/gthread.h:126: included_from: Included from here.
/usr/include/glib-2.0/glib.h:115: included_from: Included from here.
/usr/include/at-spi-2.0/atspi/atspi.h:27: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c:30: included_from: Included from here.
# 668| *d = 0;
# 669| e = c;
# 670|-> curRowLengths[i] = (len = my_mbsrtowcs(NULL,&e,0,NULL)) + (d != NULL);
# 671| if (len > curNumCols)
# 672| curNumCols = len;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def392]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c:680:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘curRows’
# 678| curRowLengths[i] = (len = 0) + (d != NULL);
# 679| }
# 680|-> curRows[i] = malloc((len + (d!=NULL)) * sizeof(*curRows[i]));
# 681| e = c;
# 682| my_mbsrtowcs(curRows[i],&e,len,NULL);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def393]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c: scope_hint: In function ‘getState’
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c:751:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
# 749| }
# 750| ret = malloc(sizeof(*ret) * count);
# 751|-> memcpy(ret, states, sizeof(*ret) * count);
# 752|
# 753| out:
Error: CLANG_WARNING: [#def394]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c:1094:14: warning[deadcode.DeadStores]: Although the value stored to 'c' is used in the enclosing expression, the value is never actually read from 'c'
# 1092| logMessage(LOG_CATEGORY(SCREEN_DRIVER),
# 1093| "'%s'",added);
# 1094|-> adding = c = added;
# 1095| if (y < curNumRows && x > curRowLengths[y]) {
# 1096| logMessage(LOG_ERR,"adding %ld %ld past end of text!", len, x - curRowLengths[y]);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def395]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c: scope_hint: In function ‘a2AddWatch’
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c:1299:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a2Watch’
# 1297| {
# 1298| struct a2Watch *a2Watch = calloc(1, sizeof(*a2Watch));
# 1299|-> a2Watch->watch = watch;
# 1300| int flags = dbus_watch_get_flags(watch);
# 1301| if (dbus_watch_get_enabled(watch))
Error: GCC_ANALYZER_WARNING (CWE-476): [#def396]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c: scope_hint: In function ‘a2AddTimeout’
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/AtSpi2/a2_screen.c:1366:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a2Timeout’
# 1364| {
# 1365| struct a2Timeout *a2Timeout = calloc(1, sizeof(*a2Timeout));
# 1366|-> a2Timeout->timeout = timeout;
# 1367| if (dbus_timeout_get_enabled(timeout))
# 1368| asyncNewRelativeAlarm(&a2Timeout->monitor, dbus_timeout_get_interval(timeout), a2ProcessTimeout, a2Timeout);
Error: CPPCHECK_WARNING: [#def397]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/FileViewer/screen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def398]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/Linux/screen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/Linux/screen.c: scope_hint: In function ‘controlCurrentConsole.part.0’
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/Linux/screen.c:435:7: warning[-Wanalyzer-malloc-leak]: leak of ‘sfm.entries’
# 433| case GIO_UNIMAP: {
# 434| struct unimapdesc *sfm = argument;
# 435|-> memset(sfm, 0, sizeof(*sfm));
# 436| sfm->entries = NULL;
# 437| sfm->entry_ct = 0;
Error: CLANG_WARNING: [#def400]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/Linux/screen.c:436:20: warning[unix.Malloc]: Potential memory leak
# 434| struct unimapdesc *sfm = argument;
# 435| memset(sfm, 0, sizeof(*sfm));
# 436|-> sfm->entries = NULL;
# 437| sfm->entry_ct = 0;
# 438| return 0;
Error: CPPCHECK_WARNING (CWE-457): [#def401]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/Linux/screen.c:607: warning[uninitvar]: Uninitialized variable: buffer
# 605| static int
# 606| readUnicodeData (off_t offset, void *buffer, size_t size) {
# 607|-> size_t count = (unicodeCacheBuffer? readUnicodeCache: readUnicodeDevice)(offset, buffer, size);
# 608| if (count == size) return 1;
# 609|
Error: CLANG_WARNING: [#def402]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/Linux/screen.c:918:11: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 916| if (!force) {
# 917| if (sfm.entry_ct == screenFontMapCount) {
# 918|-> if (memcmp(sfm.entries, screenFontMapTable, sfm.entry_ct*sizeof(sfm.entries[0])) == 0) {
# 919| free(sfm.entries);
# 920| return 0;
Error: CLANG_WARNING: [#def403]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/Linux/screen.c:1138:12: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1136|
# 1137| if (unicode) {
# 1138|-> wc = *unicode++;
# 1139|
# 1140| if ((blanks > 0) && (wc == WC_C(' '))) {
Error: CLANG_WARNING: [#def404]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/Linux/screen.c:1149:34: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
# 1147| }
# 1148| } else {
# 1149|-> uint16_t position = *vga & 0XFF;
# 1150| if (*vga & fontAttributesMask) position |= 0X100;
# 1151| wc = convertCharacter(&translationTable[position]);
Error: CLANG_WARNING: [#def405]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/Linux/screen.c:1156:42: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
# 1154| if (wc != WEOF) {
# 1155| if (character) {
# 1156|-> character->attributes = ((*vga & unshiftedAttributesMask) |
# 1157| ((*vga & shiftedAttributesMask) >> 1)) >> 8;
# 1158|
Error: CPPCHECK_WARNING: [#def406]
brltty-6.6-build/brltty-6.6/python3/Drivers/Screen/TerminalEmulator/em_screen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def407]
brltty-6.6-build/brltty-6.6/python3/Drivers/Speech/ExternalSpeech/speech.c:186:7: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 184| *p++ = count & 0XFF;
# 185| p = mempcpy(p, text, length);
# 186|-> p = mempcpy(p, attributes, count);
# 187|
# 188| if (sendPacket(spk, packet, (p - packet))) {
Error: CPPCHECK_WARNING: [#def408]
brltty-6.6-build/brltty-6.6/python3/Drivers/Speech/Festival/speech.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def409]
brltty-6.6-build/brltty-6.6/python3/Drivers/Speech/eSpeak-NG/speech.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def410]
brltty-6.6-build/brltty-6.6/python3/Drivers/Speech/eSpeak/speech.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-476): [#def411]
brltty-6.6-build/brltty-6.6/python3/Headers/bitfield.h:76: error[ctunullpointer]: Null pointer dereference: to
# 74| }
# 75|
# 76|-> DEFINE_PHYSICAL_ENDIAN_FUNCTIONS(16)
# 77| DEFINE_PHYSICAL_ENDIAN_FUNCTIONS(32)
# 78| DEFINE_PHYSICAL_ENDIAN_FUNCTIONS(64)
Error: COMPILER_WARNING: [#def412]
brltty-6.6-build/brltty-6.6/python3/Drivers/Braille/TTY/braille.c:40: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Headers/get_curses.h:54:2: warning[-Wcpp]: #warning curses package either unspecified or unsupported
# 52|
# 53| #else /* curses package */
# 54|-> #warning curses package either unspecified or unsupported
# 55| #endif /* curses package */
# 56|
Error: CPPCHECK_WARNING: [#def413]
brltty-6.6-build/brltty-6.6/python3/Programs/alert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def414]
brltty-6.6-build/brltty-6.6/python3/Programs/apitest.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def415]
brltty-6.6-build/brltty-6.6/python3/Programs/apitest.c:329:11: warning[deadcode.DeadStores]: Although the value stored to 'res' is used in the enclosing expression, the value is never actually read from 'res'
# 327| }
# 328|
# 329|-> while ((res = brlapi_readKey(1, &code)) != -1) {
# 330| fprintf(stderr, "got key %016"BRLAPI_PRIxKEYCODE"\n",code);
# 331| cmd = cmdBrlapiToBrltty(code);
Error: CPPCHECK_WARNING: [#def416]
brltty-6.6-build/brltty-6.6/python3/Programs/async_alarm.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def417]
brltty-6.6-build/brltty-6.6/python3/Programs/async_io.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def418]
brltty-6.6-build/brltty-6.6/python3/Programs/async_signal.c:603:36: warning[deadcode.DeadStores]: Value stored to 'info' during its initialization is never read
# 601| label, sig->signalfd.fileDescriptor, sig->number);
# 602| } else {
# 603|-> const struct signalfd_siginfo *info = parameters->buffer;
# 604|
# 605| handlePendingSignal(sig);
Error: CPPCHECK_WARNING: [#def419]
brltty-6.6-build/brltty-6.6/python3/Programs/atb_compile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def420]
brltty-6.6-build/brltty-6.6/python3/Programs/auth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
brltty-6.6-build/brltty-6.6/python3/Programs/auth.c: scope_hint: In function ‘initializeMethodDescriptor’
brltty-6.6-build/brltty-6.6/python3/Programs/auth.c:290:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*definition.initialize(parameter)’
brltty-6.6-build/brltty-6.6/python3/Programs/auth.c:19: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Headers/prologue.h:56:38: note: in definition of macro ‘ARRAY_SIZE’
# 288|
# 289| if ((keyfile = malloc(sizeof(*keyfile)))) {
# 290|-> if (*parameter) {
# 291| keyfile->path = parameter;
# 292| return keyfile;
Error: CPPCHECK_WARNING: [#def422]
brltty-6.6-build/brltty-6.6/python3/Programs/bluetooth.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def423]
brltty-6.6-build/brltty-6.6/python3/Programs/bluetooth.c:685:33: warning[core.NullDereference]: Array access (via field 'table') results in a null pointer dereference
# 683| while (first <= last) {
# 684| unsigned int current = (first + last) / 2;
# 685|-> int relation = strcmp(code, driverCodes.table[current]);
# 686|
# 687| if (relation < 0) {
Error: CLANG_WARNING: [#def424]
brltty-6.6-build/brltty-6.6/python3/Programs/bluetooth.c:749:42: warning[core.NullDereference]: Array access (via field 'table') results in a null pointer dereference
# 747|
# 748| if (bthEnsureDriverCodeTableSize()) {
# 749|-> driverCodes.table[driverCodes.count] = NULL;
# 750| return driverCodes.table;
# 751| }
Error: CPPCHECK_WARNING: [#def425]
brltty-6.6-build/brltty-6.6/python3/Programs/bluetooth_linux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def426]
brltty-6.6-build/brltty-6.6/python3/Programs/brl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def427]
brltty-6.6-build/brltty-6.6/python3/Programs/brl_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:106: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h: scope_hint: In function ‘brlapi_writePacket’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1365:24: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1373:24: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:63:3: note: in expansion of macro ‘brlapi_errfun’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:282:9: note: in expansion of macro ‘BRLAPI’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:110: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:61:3: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:61:3: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:61:3: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1369:27: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:62:3: note: in expansion of macro ‘brlapi_libcerrno’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1369:27: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:62:3: note: in expansion of macro ‘brlapi_libcerrno’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1373:24: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:63:3: note: in expansion of macro ‘brlapi_errfun’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:289:5: note: in expansion of macro ‘LibcError’
# 1363|
# 1364| /** Cheat about the brlapi_error C token */
# 1365|-> #define brlapi_error (*brlapi_error_location())
# 1366| /** Cheat about the brlapi_errno C token */
# 1367| #define brlapi_errno (brlapi_error.brlerrno)
Error: CPPCHECK_WARNING: [#def429]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def430]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:470:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 468| {
# 469| /* For us, just copy */
# 470|-> memcpy(packet, handle->packet.content, MIN(packetSize, size));
# 471| return size;
# 472| }
Error: CPPCHECK_WARNING (CWE-562): [#def431]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:615: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 613| handle->altPacket = packet;
# 614| handle->altSize = size;
# 615|-> handle->altRes = &res;
# 616| sem_init(&sem, 0, 0);
# 617| handle->altSem = &sem;
Error: CPPCHECK_WARNING (CWE-562): [#def432]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:617: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 615| handle->altRes = &res;
# 616| sem_init(&sem, 0, 0);
# 617|-> handle->altSem = &sem;
# 618| }
# 619| pthread_mutex_unlock(&handle->read_mutex);
Error: CLANG_WARNING: [#def433]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:1074:8: warning[deadcode.DeadStores]: Although the value stored to 'len' is used in the enclosing expression, the value is never actually read from 'len'
# 1072| }
# 1073|
# 1074|-> if ((len = brlapi__waitForPacket(handle, BRLAPI_PACKET_VERSION, &serverPacket, sizeof(serverPacket), WAIT_FOR_EXPECTED_PACKET, WAIT_FOREVER)) < 0)
# 1075| goto outfd;
# 1076|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c: scope_hint: In function ‘ignore_accept_keys.part.0’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:2523:16: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:2522:9: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:2522:9: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:2522:9: note: in expansion of macro ‘brlapi_errno’
# 2521| if (code[i] & mask) {
# 2522| brlapi_errno = BRLAPI_ERROR_INVALID_PARAMETER;
# 2523|-> return -1;
# 2524| }
# 2525| ranges[i].first = code[i];
Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c: scope_hint: In function ‘ignore_accept_keys’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:2714:38: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:2508:7: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:2508:7: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:2508:7: note: in expansion of macro ‘brlapi_errno’
# 2712| pthread_once(&error_key_once, error_key_alloc);
# 2713| if (pthread_error_ok) {
# 2714|-> if ((errorp=(brlapi_error_t *) pthread_getspecific(error_key)))
# 2715| /* normal case */
# 2716| return errorp;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c: scope_hint: In function ‘brlapi_error_location’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:2719:46: warning[-Wanalyzer-malloc-leak]: leak of ‘errorp’
# 2717| else
# 2718| /* on the first time, must allocate it */
# 2719|-> if ((errorp=malloc(sizeof(*errorp))) && !pthread_setspecific(error_key,errorp)) {
# 2720| memset(errorp,0,sizeof(*errorp));
# 2721| return errorp;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:313:14: warning[-Wanalyzer-malloc-leak]: leak of ‘brlapi_error_location()’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:305:9: note: in expansion of macro ‘BRLAPI’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:61:3: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:312:7: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1367:23: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:61:3: note: in expansion of macro ‘brlapi_errno’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:312:7: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1369:27: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:62:3: note: in expansion of macro ‘brlapi_libcerrno’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:312:7: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1369:27: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:62:3: note: in expansion of macro ‘brlapi_libcerrno’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:312:7: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1373:24: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:63:3: note: in expansion of macro ‘brlapi_errfun’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:312:7: note: in expansion of macro ‘LibcError’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi.h:1373:24: note: in expansion of macro ‘brlapi_error’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:63:3: note: in expansion of macro ‘brlapi_errfun’
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:312:7: note: in expansion of macro ‘LibcError’
# 311| /* reports EINTR too */
# 312| LibcError("read in brlapi_readPacketHeader");
# 313|-> return -1;
# 314| } else return -2;
# 315| }
Error: CLANG_WARNING: [#def438]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:110: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:849:8: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 847| static void convertInteger_ntoh16 (void *v) {
# 848| uint16_t *u = v;
# 849|-> *u = ntohs(*u);
# 850| }
# 851|
Error: CLANG_WARNING: [#def439]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:110: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:859:8: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 857| static void convertInteger_ntoh32 (void *v) {
# 858| uint32_t *u = v;
# 859|-> *u = ntohl(*u);
# 860| }
# 861|
Error: CLANG_WARNING: [#def440]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_client.c:110: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_common.h:877:21: warning[core.UndefinedBinaryOperatorResult]: The left operand of '&' is a garbage value
# 875| #ifndef WORDS_BIGENDIAN
# 876| uint64_t *u = v;
# 877|-> uint32_t low = *u & UINT64_LOW;
# 878| uint32_t high = *u >> UINT64_SHIFT;
# 879| *u = ((uint64_t)ntohl(low) << UINT64_SHIFT) | ntohl(high);
Error: CPPCHECK_WARNING: [#def441]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_keyranges.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def442]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_server.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def443]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_server.c:1171:5: warning[deadcode.DeadStores]: Value stored to 'p' is never read
# 1169| CHECKEXC(remaining>=charsetLen, BRLAPI_ERROR_INVALID_PACKET, "packet too small for charset");
# 1170| charset = (char *) p;
# 1171|-> p += charsetLen; remaining -= charsetLen; /* charset name */
# 1172| }
# 1173| CHECKEXC(remaining==0, BRLAPI_ERROR_INVALID_PACKET, "packet too big");
Error: CLANG_WARNING: [#def444]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_server.c:1206:22: warning[deadcode.DeadStores]: Value stored to 'charsetLen' is never read
# 1204| #endif /* HAVE_ALLOCA_H */
# 1205|
# 1206|-> if (charset) charsetLen = length;
# 1207| }
# 1208|
Error: CLANG_WARNING: [#def445]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_server.c:1305:5: warning[deadcode.DeadStores]: Value stored to 'charsetLen' is never read
# 1303| // This occurs when getCharset() is saved and alloca() isn't available.
# 1304| charset = NULL;
# 1305|-> charsetLen = 0;
# 1306|
# 1307| if (!andAttr) memset(c->brailleWindow.andAttr+rbeg-1,0xFF,rsiz_filled);
Error: CPPCHECK_WARNING (CWE-476): [#def446]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_server.c:2331: error[ctunullpointer]: Null pointer dereference: c
# 2329| struct Subscription *s;
# 2330|
# 2331|-> for (s=c->subscriptions.next; s!=&c->subscriptions; s=s->next) {
# 2332| if (s->parameter == param
# 2333| && s->subparam == subparam
Error: CLANG_WARNING: [#def447]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_server.c:4089:5: warning[unix.Malloc]: Use of memory after it is freed
# 4087| {
# 4088| while (tty->connections->next != tty->connections) {
# 4089|-> removeFreeConnection(tty->connections->next);
# 4090| }
# 4091| freeConnection(tty->connections);
Error: CPPCHECK_WARNING (CWE-401): [#def448]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_server.c:4476: error[memleakOnRealloc]: Common realloc mistake: 'coreWindowText' nulled but not freed upon failure
# 4474| displayDimensions[1] = htonl(brl->textRows);
# 4475| displaySize = brl->textColumns * brl->textRows;
# 4476|-> coreWindowText = realloc(coreWindowText, displaySize * sizeof(*coreWindowText));
# 4477| coreWindowDots = realloc(coreWindowDots, displaySize * sizeof(*coreWindowDots));
# 4478| coreWindowCursor = 0;
Error: CPPCHECK_WARNING (CWE-401): [#def449]
brltty-6.6-build/brltty-6.6/python3/Programs/brlapi_server.c:4477: error[memleakOnRealloc]: Common realloc mistake: 'coreWindowDots' nulled but not freed upon failure
# 4475| displaySize = brl->textColumns * brl->textRows;
# 4476| coreWindowText = realloc(coreWindowText, displaySize * sizeof(*coreWindowText));
# 4477|-> coreWindowDots = realloc(coreWindowDots, displaySize * sizeof(*coreWindowDots));
# 4478| coreWindowCursor = 0;
# 4479| handleParamUpdate(NULL, NULL, BRLAPI_PARAM_DISPLAY_SIZE, 0, BRLAPI_PARAMF_GLOBAL, displayDimensions, sizeof(displayDimensions));
Error: CPPCHECK_WARNING: [#def450]
brltty-6.6-build/brltty-6.6/python3/Programs/brltty-atb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def451]
brltty-6.6-build/brltty-6.6/python3/Programs/brltty-cldr.c:116: error[uninitvar]: Uninitialized variable: *character
# 114|
# 115| while (character < end) {
# 116|-> if (writeHexadecimalCharacter(stdout, *character) == EOF) onOutputError();
# 117| character += 1;
# 118| }
Error: CPPCHECK_WARNING: [#def452]
brltty-6.6-build/brltty-6.6/python3/Programs/brltty-clip.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def453]
brltty-6.6-build/brltty-6.6/python3/Programs/brltty-ctb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def454]
brltty-6.6-build/brltty-6.6/python3/Programs/brltty-hid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def455]
brltty-6.6-build/brltty-6.6/python3/Programs/brltty-ktb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def456]
brltty-6.6-build/brltty-6.6/python3/Programs/brltty-lscmds.c:236: warning[uninitvar]: Uninitialized variables: commands.name, commands.description, commands.code, commands.isToggle, commands.isMotion, commands.isRow, commands.isVertical, commands.isHorizontal, commands.isPanning, commands.isInput, commands.isCharacter, commands.isBraille, commands.isKeyboard, commands.isRouting, commands.isColumn, commands.isOffset, commands.isRange
# 234| commands[index] = &commandTable[index];
# 235| }
# 236|-> qsort(commands, count, sizeof(commands[0]), compareCommands);
# 237|
# 238| for (int index=0; index<count; index+=1) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def457]
brltty-6.6-build/brltty-6.6/python3/Programs/brltty-lsinc.c: scope_hint: In function ‘logFileName.part.0’
brltty-6.6-build/brltty-6.6/python3/Programs/brltty-lsinc.c:54:1: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
# 52| printf("%s\n", name);
# 53| }
# 54|-> }
# 55|
# 56| static DATA_CONDITION_TESTER(testConditionOperand) {
Error: CPPCHECK_WARNING: [#def458]
brltty-6.6-build/brltty-6.6/python3/Programs/brltty-morse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def459]
brltty-6.6-build/brltty-6.6/python3/Programs/brltty-trtxt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def460]
brltty-6.6-build/brltty-6.6/python3/Programs/brltty-ttb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def461]
brltty-6.6-build/brltty-6.6/python3/Programs/brltty-ttb.c:402: warning[uninitvar]: Uninitialized variables: inputCharactersBuffer.character, inputCharactersBuffer.dots
# 400|
# 401| qsort(
# 402|-> inputCharactersBuffer, inputCharacterCount,
# 403| sizeof(inputCharactersBuffer[0]),
# 404| sortInputCharacterEntries
Error: CPPCHECK_WARNING: [#def462]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-121): [#def463]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c: scope_hint: In function ‘registerCharacterSet’
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:121:26: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:121:26: note: write of 8 bytes to beyond the end of ‘convTable’
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:121:26: note: valid subscripts for ‘convTable’ are ‘[0]’ to ‘[1]’
# 119|
# 120| while (conv < convEnd) {
# 121|-> if ((conv->newHandle = iconv_open(conv->toCharset, conv->fromCharset)) == CHARSET_ICONV_NULL) {
# 122| logSystemError("iconv_open");
# 123|
Error: GCC_ANALYZER_WARNING (CWE-126): [#def464]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:121:43: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:121:43: note: read of 8 bytes from after the end of ‘convTable’
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:121:43: note: valid subscripts for ‘convTable’ are ‘[0]’ to ‘[1]’
# └──────────────────────────────────────┘
# ^
# 119|
# 120| while (conv < convEnd) {
# 121|-> if ((conv->newHandle = iconv_open(conv->toCharset, conv->fromCharset)) == CHARSET_ICONV_NULL) {
# 122| logSystemError("iconv_open");
# 123|
Error: GCC_ANALYZER_WARNING (CWE-126): [#def465]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:121:60: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:121:60: note: read of 8 bytes from after the end of ‘convTable’
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:121:60: note: valid subscripts for ‘convTable’ are ‘[0]’ to ‘[1]’
# └──────────────────────────────────────┘
# ^
# 119|
# 120| while (conv < convEnd) {
# 121|-> if ((conv->newHandle = iconv_open(conv->toCharset, conv->fromCharset)) == CHARSET_ICONV_NULL) {
# 122| logSystemError("iconv_open");
# 123|
Error: GCC_ANALYZER_WARNING (CWE-126): [#def466]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:126:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:126:9: note: read of 8 bytes from after the end of ‘convTable’
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:126:9: note: valid subscripts for ‘convTable’ are ‘[0]’ to ‘[1]’
# └──────────────────────────┘
# ^
# 124| while (conv > convTable) {
# 125| conv -= 1;
# 126|-> iconv_close(conv->newHandle);
# 127| }
# 128|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def467]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[0].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[1].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[2].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[3].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[4].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[5].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:129:14: warning[-Wanalyzer-malloc-leak]: leak of ‘convTable[6].newHandle’
# 127| }
# 128|
# 129|-> return 0;
# 130| }
# 131|
Error: GCC_ANALYZER_WARNING (CWE-126): [#def474]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:138:14: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:138:14: note: read of 8 bytes from after the end of ‘convTable’
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:138:14: note: valid subscripts for ‘convTable’ are ‘[0]’ to ‘[1]’
# └──────────────────────────────────┘
# ^
# 136| conv -= 1;
# 137|
# 138|-> if (*conv->handle == CHARSET_ICONV_NULL) {
# 139| firstTime = 1;
# 140| } else {
Error: GCC_ANALYZER_WARNING (CWE-126): [#def475]
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:144:25: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:144:25: note: read of 8 bytes from after the end of ‘convTable’
brltty-6.6-build/brltty-6.6/python3/Programs/charset_iconv.c:144:25: note: valid subscripts for ‘convTable’ are ‘[0]’ to ‘[1]’
# └──────────────────────────┘
# ^
# 142| }
# 143|
# 144|-> *conv->handle = conv->newHandle;
# 145| }
# 146|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
brltty-6.6-build/brltty-6.6/python3/Programs/clipboard.c: scope_hint: In function ‘newClipboard’
brltty-6.6-build/brltty-6.6/python3/Programs/clipboard.c:201:8: warning[-Wanalyzer-malloc-leak]: leak of ‘cpb’
# 199| cpb->buffer.length = 0;
# 200|
# 201|-> if ((cpb->history.queue = newQueue(deallocateClipboardHistoryEntry, NULL))) {
# 202| return cpb;
# 203| }
Error: CPPCHECK_WARNING (CWE-401): [#def477]
brltty-6.6-build/brltty-6.6/python3/Programs/clipboard.c:208: error[memleak]: Memory leak: cpb
# 206| }
# 207|
# 208|-> return NULL;
# 209| }
# 210|
Error: CPPCHECK_WARNING: [#def478]
brltty-6.6-build/brltty-6.6/python3/Programs/cmd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def479]
brltty-6.6-build/brltty-6.6/python3/Programs/cmd_clipboard.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def480]
brltty-6.6-build/brltty-6.6/python3/Programs/cmd_keycodes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def481]
brltty-6.6-build/brltty-6.6/python3/Programs/cmd_miscellaneous.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def482]
brltty-6.6-build/brltty-6.6/python3/Programs/cmd_navigation.c:233: warning[uninitvar]: Uninitialized variable: text
# 231| }
# 232|
# 233|-> return !!rgxMatchTextCharacters(promptPatterns, text, length, NULL, NULL);
# 234| }
# 235|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def483]
brltty-6.6-build/brltty-6.6/python3/Programs/cmd_queue.c: scope_hint: In function ‘pushCommandHandler’
brltty-6.6-build/brltty-6.6/python3/Programs/cmd_queue.c:307:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.6-build/brltty-6.6/python3/Programs/cmd_queue.c: scope_hint: In function ‘pushCommandHandler’
# 305| CommandHandlerLevel **top = getCommandHandlerTop();
# 306|
# 307|-> chl->previousLevel = *top;
# 308| *top = chl;
# 309| }
Error: GCC_ANALYZER_WARNING (CWE-476): [#def484]
brltty-6.6-build/brltty-6.6/python3/Programs/cmd_queue.c: scope_hint: In function ‘popCommandHandler’
brltty-6.6-build/brltty-6.6/python3/Programs/cmd_queue.c:323:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.6-build/brltty-6.6/python3/Programs/cmd_queue.c: scope_hint: In function ‘popCommandHandler’
# 321| popCommandHandler (void) {
# 322| CommandHandlerLevel **top = getCommandHandlerTop();
# 323|-> CommandHandlerLevel *chl = *top;
# 324|
# 325| if (!chl) return 0;
Error: CPPCHECK_WARNING: [#def485]
brltty-6.6-build/brltty-6.6/python3/Programs/cmd_speech.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def486]
brltty-6.6-build/brltty-6.6/python3/Programs/cmd_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def487]
brltty-6.6-build/brltty-6.6/python3/Programs/cmdline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
brltty-6.6-build/brltty-6.6/python3/Programs/cmdline.c: scope_hint: In function ‘processCommandLine’
brltty-6.6-build/brltty-6.6/python3/Programs/cmdline.c:466:18: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
# 464|
# 465| if (strncasecmp(noPrefix, word, noLength) == 0) {
# 466|-> name = strdup(&word[noLength]);
# 467| } else {
# 468| size_t size = noLength + strlen(word) + 1;
Error: CLANG_WARNING: [#def489]
brltty-6.6-build/brltty-6.6/python3/Programs/cmdline.c:501:10: warning[unix.Malloc]: Potential leak of memory pointed to by field 'name'
# 499| #endif /* ALLOW_DOS_OPTION_SYNTAX */
# 500|
# 501|-> opterr = 0;
# 502| optind = 1;
# 503| int lastOptInd = -1;
Error: CLANG_WARNING: [#def490]
brltty-6.6-build/brltty-6.6/python3/Programs/cmdline.c:645:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 643|
# 644| case 0: { // reset a flag
# 645|-> const CommandLineOption *option = letterToOption[resetLetter];
# 646| *option->setting.flag = 0;
# 647| setEnsuredSetting(info, option, 1);
Error: CPPCHECK_WARNING: [#def491]
brltty-6.6-build/brltty-6.6/python3/Programs/config.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def492]
brltty-6.6-build/brltty-6.6/python3/Programs/core.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def493]
brltty-6.6-build/brltty-6.6/python3/Programs/core.c:1034: warning[uninitvar]: Uninitialized variable: attributes
# 1032| }
# 1033|
# 1034|-> sayWideCharacters(&spk, text, attributes, count, options);
# 1035| }
# 1036|
Error: CPPCHECK_WARNING (CWE-457): [#def494]
brltty-6.6-build/brltty-6.6/python3/Programs/core.c:1034: warning[uninitvar]: Uninitialized variable: text
# 1032| }
# 1033|
# 1034|-> sayWideCharacters(&spk, text, attributes, count, options);
# 1035| }
# 1036|
Error: CPPCHECK_WARNING (CWE-457): [#def495]
brltty-6.6-build/brltty-6.6/python3/Programs/core.c:1117: warning[uninitvar]: Uninitialized variable: attributesBuffer
# 1115| }
# 1116|
# 1117|-> sayWideCharacters(&spk, textBuffer, attributesBuffer, length-1, sayOptions);
# 1118| } else {
# 1119| sayScreenCharacters(characters, count, sayOptions);
Error: CPPCHECK_WARNING (CWE-457): [#def496]
brltty-6.6-build/brltty-6.6/python3/Programs/core.c:1117: warning[uninitvar]: Uninitialized variable: textBuffer
# 1115| }
# 1116|
# 1117|-> sayWideCharacters(&spk, textBuffer, attributesBuffer, length-1, sayOptions);
# 1118| } else {
# 1119| sayScreenCharacters(characters, count, sayOptions);
Error: CPPCHECK_WARNING (CWE-457): [#def497]
brltty-6.6-build/brltty-6.6/python3/Programs/core.c:1150: warning[uninitvar]: Uninitialized variable: text
# 1148| "line indent: %d", indent);
# 1149|
# 1150|-> sayString(&spk, text, SAY_OPT_MUTE_FIRST);
# 1151| return 1;
# 1152| }
Error: CPPCHECK_WARNING: [#def498]
brltty-6.6-build/brltty-6.6/python3/Programs/ctb_compile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def499]
brltty-6.6-build/brltty-6.6/python3/Programs/ctb_compile.c:561:16: warning[deadcode.DeadStores]: Although the value stored to 'class' is used in the enclosing expression, the value is never actually read from 'class'
# 559| const struct CharacterClass *class;
# 560|
# 561|-> if ((class = findCharacterClass(name.characters, name.length, ctd))) {
# 562| reportDataError(file, "character class already defined: %.*" PRIws,
# 563| name.length, name.characters);
Error: CPPCHECK_WARNING: [#def500]
brltty-6.6-build/brltty-6.6/python3/Programs/ctb_native.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def501]
brltty-6.6-build/brltty-6.6/python3/Programs/ctb_native.c:668:78: warning[core.NullDereference]: Array access (via field 'current') results in a null pointer dereference
# 666| static void
# 667| setBefore (BrailleContractionData *bcd) {
# 668|-> bcd->current.before = (bcd->input.current == bcd->input.begin)? WC_C(' '): bcd->input.current[-1];
# 669| }
# 670|
Error: CPPCHECK_WARNING: [#def502]
brltty-6.6-build/brltty-6.6/python3/Programs/ctb_translate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def503]
brltty-6.6-build/brltty-6.6/python3/Programs/ctb_translate.c:356:67: warning[core.NullDereference]: Dereference of null pointer
# 354| while ((bcd.input.current < bcd.input.end) && (bcd.output.current < bcd.output.end)) {
# 355| setOffset(&bcd);
# 356|-> *bcd.output.current++ = convertCharacterToDots(textTable, *bcd.input.current++);
# 357| }
# 358| }
Error: CLANG_WARNING: [#def504]
brltty-6.6-build/brltty-6.6/python3/Programs/ctb_translate.c:25: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Programs/ctb_translate.h:119:29: warning[core.NullDereference]: Array access (via field 'current') results in a null pointer dereference
# 117| static inline int
# 118| testRelative (BrailleContractionData *bcd, int offset, ContractionTableCharacterAttributes attributes) {
# 119|-> return testCharacter(bcd, bcd->input.current[offset], attributes);
# 120| }
# 121|
Error: CPPCHECK_WARNING: [#def505]
brltty-6.6-build/brltty-6.6/python3/Programs/datafile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def506]
brltty-6.6-build/brltty-6.6/python3/Programs/datafile.c:1139:15: warning[deadcode.DeadStores]: Value stored to 'overrideDirectory' is never read
# 1137| if (testFilePath(path)) {
# 1138| file = openFile(path, mode, optional);
# 1139|-> overrideDirectory = *directory;
# 1140| overridePath = path;
# 1141| goto done;
Error: CPPCHECK_WARNING: [#def507]
brltty-6.6-build/brltty-6.6/python3/Programs/drivers.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def508]
brltty-6.6-build/brltty-6.6/python3/Programs/file.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-252): [#def509]
brltty-6.6-build/brltty-6.6/python3/Programs/file.c:1094: error[leakReturnValNotUsed]: Return value of allocation function 'freopen' is not stored.
# 1092| }
# 1093|
# 1094|-> if (!freopen(nullDevice, (output? "a": "r"), stream)) {
# 1095| if (errno != ENOENT) {
# 1096| char action[0X40];
Error: CPPCHECK_WARNING: [#def510]
brltty-6.6-build/brltty-6.6/python3/Programs/gio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def511]
brltty-6.6-build/brltty-6.6/python3/Programs/gio.c: scope_hint: In function ‘gioConnectResource’
brltty-6.6-build/brltty-6.6/python3/Programs/gio.c:171:42: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 169| if ((endpoint->handle = properties->private->connectResource(identifier, descriptor))) {
# 170| {
# 171|-> GioGetChainedEndpointMethod *getChainedEndpoint = endpoint->handleMethods->getChainedEndpoint;
# 172|
# 173| if (getChainedEndpoint) {
Error: CLANG_WARNING: [#def512]
brltty-6.6-build/brltty-6.6/python3/Programs/gio.c:171:63: warning[core.NullDereference]: Access to field 'getChainedEndpoint' results in a dereference of a null pointer (loaded from field 'handleMethods')
# 169| if ((endpoint->handle = properties->private->connectResource(identifier, descriptor))) {
# 170| {
# 171|-> GioGetChainedEndpointMethod *getChainedEndpoint = endpoint->handleMethods->getChainedEndpoint;
# 172|
# 173| if (getChainedEndpoint) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
brltty-6.6-build/brltty-6.6/python3/Programs/gio.c:218:6: warning[-Wanalyzer-malloc-leak]: leak of ‘endpoint’
# 216| int
# 217| gioDisconnectResource (GioEndpoint *endpoint) {
# 218|-> if (--endpoint->referenceCount > 0) return 1;
# 219|
# 220| int ok = 0;
Error: CPPCHECK_WARNING: [#def514]
brltty-6.6-build/brltty-6.6/python3/Programs/hid.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def515]
brltty-6.6-build/brltty-6.6/python3/Programs/hid_inspect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def516]
brltty-6.6-build/brltty-6.6/python3/Programs/hid_items.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def517]
brltty-6.6-build/brltty-6.6/python3/Programs/hidkeys.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def518]
brltty-6.6-build/brltty-6.6/python3/Programs/hostcmd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def519]
brltty-6.6-build/brltty-6.6/python3/Programs/hostcmd_unix.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def520]
brltty-6.6-build/brltty-6.6/python3/Programs/ihex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def521]
brltty-6.6-build/brltty-6.6/python3/Programs/kbd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def522]
brltty-6.6-build/brltty-6.6/python3/Programs/kbd_linux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def523]
brltty-6.6-build/brltty-6.6/python3/Programs/kbd_linux.c: scope_hint: In function ‘monitorKeyboard’
brltty-6.6-build/brltty-6.6/python3/Programs/kbd_linux.c:647:6: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*kio_95(D)->kix.device.path, 0)’
# 645| const char *deviceName = locatePathName(kio->kix->device.path);
# 646|
# 647|-> if ((kio->kix->file.descriptor = open(kio->kix->device.path, O_RDONLY)) != -1) {
# 648| struct stat status;
# 649|
Error: CLANG_WARNING: [#def524]
brltty-6.6-build/brltty-6.6/python3/Programs/kbd_linux.c:824:10: warning[deadcode.DeadStores]: Although the value stored to 'length' is used in the enclosing expression, the value is never actually read from 'length'
# 822| ssize_t length;
# 823|
# 824|-> if ((length = read(descriptor, buffer, sizeof(buffer))) > 0) {
# 825| if (sscanf(buffer, "%d:%d", major, minor) == 2) {
# 826| ok = 1;
Error: CPPCHECK_WARNING: [#def525]
brltty-6.6-build/brltty-6.6/python3/Programs/ktb_compile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def526]
brltty-6.6-build/brltty-6.6/python3/Programs/ktb_list.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def527]
brltty-6.6-build/brltty-6.6/python3/Programs/ktb_list.c:272:29: warning[core.NullDereference]: Dereference of null pointer
# 270|
# 271| if (dotCount == 2) {
# 272|-> char firstDot = *STR_POP();
# 273| STR_PRINTF("s%c", firstDot);
# 274| }
Error: CPPCHECK_WARNING: [#def528]
brltty-6.6-build/brltty-6.6/python3/Programs/ktb_translate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def529]
brltty-6.6-build/brltty-6.6/python3/Programs/ktb_translate.c:919:3: warning[unix.Malloc]: Use of memory after it is freed
# 917|
# 918| *count = acd.count;
# 919|-> return acd.array;
# 920|
# 921| error:
Error: CPPCHECK_WARNING: [#def530]
brltty-6.6-build/brltty-6.6/python3/Programs/log.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def531]
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def532]
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘beginMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c:186:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘beginMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘beginMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘beginMenuItem’
# 184| static int
# 185| beginMenuItem (MenuItem *item) {
# 186|-> return !item->methods->beginItem || item->methods->beginItem(item);
# 187| }
# 188|
Error: CLANG_WARNING: [#def533]
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c:191:7: warning[core.NullDereference]: Access to field 'endItem' results in a dereference of a null pointer (loaded from field 'methods')
# 189| static void
# 190| endMenuItem (MenuItem *item, int deallocating) {
# 191|-> if (item->methods->endItem) item->methods->endItem(item, deallocating);
# 192| }
# 193|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def534]
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c:191:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘destroyMenu’
# 189| static void
# 190| endMenuItem (MenuItem *item, int deallocating) {
# 191|-> if (item->methods->endItem) item->methods->endItem(item, deallocating);
# 192| }
# 193|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def535]
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘getMenuItemTitle’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c:284:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘getMenuItemTitle’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘getMenuItemTitle’
# 282| const char *
# 283| getMenuItemTitle (const MenuItem *item) {
# 284|-> return getLocalizedText(item->title);
# 285| }
# 286|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def536]
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘newMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c:325:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 323| MenuItem *item = getMenuItem(menu, menu->items.count++);
# 324|
# 325|-> item->menu = menu;
# 326| item->setting = setting;
# 327|
Error: GCC_ANALYZER_WARNING (CWE-476): [#def537]
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c:1023:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘changeMenuSettingScaled’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘changeMenuSettingScaled’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘changeMenuSettingScaled’
# 1021| static int
# 1022| activateMenuItem (MenuItem *item) {
# 1023|-> if (!item->methods->activateItem) return 0;
# 1024| item->methods->activateItem(item);
# 1025| return 1;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def538]
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c:1129:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*menu.activeItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
# 1127| MenuItem *item = getCurrentMenuItem(menu);
# 1128|
# 1129|-> if (item->methods != &menuItemMethods_submenu) break;
# 1130| if (!item->data.submenu->opened) break;
# 1131| menu = item->data.submenu->menu;
Error: GCC_ANALYZER_WARNING (CWE-476): [#def539]
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c:1129:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
brltty-6.6-build/brltty-6.6/python3/Programs/menu.c: scope_hint: In function ‘getCurrentSubmenu’
# 1127| MenuItem *item = getCurrentMenuItem(menu);
# 1128|
# 1129|-> if (item->methods != &menuItemMethods_submenu) break;
# 1130| if (!item->data.submenu->opened) break;
# 1131| menu = item->data.submenu->menu;
Error: CLANG_WARNING: [#def540]
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1091:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'strings'
# 1089| {
# 1090| NAME(strtext("MIDI Instrument"));
# 1091|-> ITEM(newStringsMenuItem(alertsSubmenu, &prefs.midiInstrument, &itemName, strings, midiInstrumentCount));
# 1092| TEST(TunesMidi);
# 1093| }
Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c: scope_hint: In function ‘makePreferencesMenu’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1545:26: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:676:5: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:680:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:680:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:684:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:689:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:694:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:699:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:699:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:70:15: note: in definition of macro ‘PROPERTY’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:709:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:710:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:715:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:716:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:727:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:728:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:739:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:740:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:754:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:755:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:761:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:765:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:770:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:770:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:771:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:776:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:777:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:783:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:784:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:791:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:792:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:798:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:803:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:804:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:810:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:811:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:818:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:819:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:825:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:70:15: note: in definition of macro ‘PROPERTY’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:72:46: note: in expansion of macro ‘MSECS2PREFS’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:830:7: note: in expansion of macro ‘BLINK_PERIOD’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:831:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:832:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:839:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:840:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:846:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:850:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:855:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:856:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:861:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:872:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:872:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:877:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:882:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:883:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:888:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:889:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:894:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:907:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:907:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:912:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:924:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:929:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:934:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:934:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:938:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:948:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:948:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:953:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:958:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:958:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:970:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:970:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:971:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:976:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:981:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:982:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:987:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:988:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:993:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:994:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1000:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1001:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1006:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1007:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1020:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1021:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1027:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1028:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1034:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1038:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1039:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1045:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1046:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1052:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1053:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1065:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1066:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1073:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1074:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1081:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1082:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1091:9: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1092:9: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1100:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1101:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1107:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1112:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1118:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1123:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1130:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1130:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1134:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1139:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1140:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1145:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1146:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1151:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1152:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1157:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1158:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1163:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1164:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1169:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1170:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1175:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1176:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1181:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1185:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1186:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1192:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1193:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1199:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1200:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1212:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1213:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1227:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1237:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1237:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1247:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1247:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1252:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1257:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1257:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1258:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1263:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1264:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1270:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1271:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1278:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1279:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1286:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1295:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1295:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1305:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1305:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1310:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1321:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1321:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1332:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1332:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1333:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1344:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1345:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1350:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1360:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1360:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1361:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1367:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1368:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1382:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1383:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1389:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:29: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1389:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1389:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1403:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1403:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1407:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1408:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1414:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1415:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1421:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1422:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1428:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1431:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1432:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1438:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1443:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1448:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1453:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1458:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1463:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1468:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1473:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1478:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1483:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1488:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1493:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1498:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1514:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1514:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1519:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1524:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1524:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1529:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1529:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1533:7: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1533:7: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1550:15: note: in expansion of macro ‘ITEM’
# 1543| MenuString *name;
# 1544|
# 1545|-> if (!(name = malloc(sizeof(*name)))) goto noItem;
# 1546| memset(name, 0, sizeof(*name));
# 1547| name->label = description;
Error: CLANG_WARNING: [#def542]
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1550:15: warning[unix.Malloc]: Potential leak of memory pointed to by 'name'
# 1548|
# 1549| {
# 1550|-> ITEM(newBooleanMenuItem(logCategoriesSubmenu, &logCategoryFlags[category], name));
# 1551|
# 1552| switch (category) {
Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1595:21: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:676:5: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:680:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:680:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:684:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:689:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:694:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:699:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:699:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:70:15: note: in definition of macro ‘PROPERTY’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:709:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:710:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:715:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:716:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:727:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:728:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:739:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:740:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:754:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:755:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:761:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:765:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:770:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:770:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:771:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:776:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:777:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:783:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:784:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:791:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:792:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:798:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:803:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:804:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:810:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:811:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:818:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:819:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:825:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:70:15: note: in definition of macro ‘PROPERTY’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:72:46: note: in expansion of macro ‘MSECS2PREFS’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:830:7: note: in expansion of macro ‘BLINK_PERIOD’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:831:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:832:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:839:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:840:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:846:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:850:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:855:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:856:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:861:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:872:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:872:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:877:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:882:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:883:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:888:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:889:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:894:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:907:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:907:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:912:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:924:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:929:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:934:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:934:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:938:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:948:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:948:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:953:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:958:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:958:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:970:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:970:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:971:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:976:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:981:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:982:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:987:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:988:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:993:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:994:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1000:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1001:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1006:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1007:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1020:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1021:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1027:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1028:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1034:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1038:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1039:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1045:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1046:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1052:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1053:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1065:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1066:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1073:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1074:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1081:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1082:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1091:9: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1092:9: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1100:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1101:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1107:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1112:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1118:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1123:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1130:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1130:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1134:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1139:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1140:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1145:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1146:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1151:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1152:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1157:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1158:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1163:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1164:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1169:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1170:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1175:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1176:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1181:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1185:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1186:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1192:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1193:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1199:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1200:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1212:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1213:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1227:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1237:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1237:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1247:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1247:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1252:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1257:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1257:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1258:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1263:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1264:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1270:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1271:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1278:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1279:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1286:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1295:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1295:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1305:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1305:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1310:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1321:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1321:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1332:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1332:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1333:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1344:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1345:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1350:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1360:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1360:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1361:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1367:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1368:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1382:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1383:7: note: in expansion of macro ‘TEST’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1389:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1389:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1389:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1390:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1391:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1392:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1393:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1394:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1395:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1396:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Headers/menu.h:65:86: note: in definition of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1388:43: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1397:7: note: in expansion of macro ‘STATUS_FIELD_ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1403:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1403:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1407:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1408:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1414:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1415:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1421:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1422:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1428:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1431:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1432:7: note: in expansion of macro ‘CHANGED’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1438:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1443:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1448:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1453:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1458:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1463:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1468:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1473:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1478:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1483:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1488:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1493:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1498:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1514:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1514:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1519:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1524:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1524:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1529:12: note: in expansion of macro ‘newEnumeratedMenuItem’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1529:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1533:7: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1533:7: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1550:15: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1572:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1572:5: note: in expansion of macro ‘SUBMENU’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1577:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1583:7: note: in expansion of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:58:37: note: in definition of macro ‘ITEM’
brltty-6.6-build/brltty-6.6/python3/Programs/menu_prefs.c:1589:7: note: in expansion of macro ‘ITEM’
# 1593| {
# 1594| NAME(strtext("Log Messages"));
# 1595|-> logMessagesMenu = newSubmenuMenuItem(rootMenu, &itemName);
# 1596| }
# 1597|
Error: CPPCHECK_WARNING: [#def544]
brltty-6.6-build/brltty-6.6/python3/Programs/message.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def545]
brltty-6.6-build/brltty-6.6/python3/Programs/message.c: scope_hint: In function ‘message’
brltty-6.6-build/brltty-6.6/python3/Programs/message.c:250:11: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘((unsigned char*)&*mgp)[12]’
brltty-6.6-build/brltty-6.6/python3/Headers/async_task.h:22: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Programs/message.c:29: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Headers/async_types_task.h:26:40: note: in definition of macro ‘ASYNC_TASK_CALLBACK’
# 248| mgp->deallocate = 0;
# 249| presentMessage(mgp);
# 250|-> if (mgp->presented) presented = 1;
# 251| } else {
# 252| mgp->deallocate = 1;
Error: CPPCHECK_WARNING: [#def546]
brltty-6.6-build/brltty-6.6/python3/Programs/messages.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-688): [#def547]
brltty-6.6-build/brltty-6.6/python3/Programs/messages.c: scope_hint: In function ‘makeLocaleDirectoryPath’
brltty-6.6-build/brltty-6.6/python3/Programs/messages.c:136:19: warning[-Wanalyzer-null-argument]: use of NULL ‘localeSpecifier’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strlen’ must be non-null
# 134| static char *
# 135| makeLocaleDirectoryPath (void) {
# 136|-> size_t length = strlen(localeSpecifier);
# 137|
# 138| char dialect[length + 1];
Error: CLANG_WARNING: [#def548]
brltty-6.6-build/brltty-6.6/python3/Programs/messages.c:216:49: warning[unix.Malloc]: Potential leak of memory pointed to by 'header'
# 214| header->translatedMessages = header->sourceMessages;
# 215|
# 216|-> if (setMessageCatalog(header, size)) return 1;
# 217| free(header);
# 218| } else {
Error: CPPCHECK_WARNING: [#def549]
brltty-6.6-build/brltty-6.6/python3/Programs/midi_alsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def550]
brltty-6.6-build/brltty-6.6/python3/Programs/mntpt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def551]
brltty-6.6-build/brltty-6.6/python3/Programs/notes_pcm.c:218: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 216| * high-order (sign) bit is set.
# 217| */
# 218|-> int32_t amplitude = currentValue ^ (currentValue >> 31);
# 219|
# 220| /* Convert the 31-bit amplitude from unsigned to signed. */
Error: CPPCHECK_WARNING: [#def552]
brltty-6.6-build/brltty-6.6/python3/Programs/params_linux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def553]
brltty-6.6-build/brltty-6.6/python3/Programs/parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def554]
brltty-6.6-build/brltty-6.6/python3/Programs/parse.c:284:5: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 282|
# 283| const Entry *entry = choice;
# 284|-> const char *name = entry->name;
# 285| if (!name) break;
# 286|
Error: CPPCHECK_WARNING: [#def555]
brltty-6.6-build/brltty-6.6/python3/Programs/pcm_alsa.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def556]
brltty-6.6-build/brltty-6.6/python3/Programs/pgmprivs_linux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def557]
brltty-6.6-build/brltty-6.6/python3/Programs/prefs.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def558]
brltty-6.6-build/brltty-6.6/python3/Programs/profile.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def559]
brltty-6.6-build/brltty-6.6/python3/Programs/program.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def560]
brltty-6.6-build/brltty-6.6/python3/Programs/rgx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def561]
brltty-6.6-build/brltty-6.6/python3/Programs/routing.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def562]
brltty-6.6-build/brltty-6.6/python3/Programs/scr_base.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def563]
brltty-6.6-build/brltty-6.6/python3/Programs/scr_menu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def564]
brltty-6.6-build/brltty-6.6/python3/Programs/serial.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def565]
brltty-6.6-build/brltty-6.6/python3/Programs/serial_termios.c:222: error[uninitvar]: Uninitialized variable: size
# 220|
# 221| attributes->c_cflag &= ~CSIZE;
# 222|-> attributes->c_cflag |= size;
# 223| return 1;
# 224| }
Error: CPPCHECK_WARNING: [#def566]
brltty-6.6-build/brltty-6.6/python3/Programs/spk_thread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def567]
brltty-6.6-build/brltty-6.6/python3/Programs/system_linux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def568]
brltty-6.6-build/brltty-6.6/python3/Programs/tbl2hex.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def569]
brltty-6.6-build/brltty-6.6/python3/Programs/ttb_gnome.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def570]
brltty-6.6-build/brltty-6.6/python3/Programs/ttb_louis.c:122:12: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 120|
# 121| if (getDots(file, &dots, "braille representation")) {
# 122|-> if (!setTextTableCharacter(ttd, characters[0], dots)) return 0;
# 123| if (!setTextTableCharacter(ttd, characters[1], dots)) return 0;
# 124| }
Error: CLANG_WARNING: [#def571]
brltty-6.6-build/brltty-6.6/python3/Programs/ttb_louis.c:123:12: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 121| if (getDots(file, &dots, "braille representation")) {
# 122| if (!setTextTableCharacter(ttd, characters[0], dots)) return 0;
# 123|-> if (!setTextTableCharacter(ttd, characters[1], dots)) return 0;
# 124| }
# 125| }
Error: CPPCHECK_WARNING: [#def572]
brltty-6.6-build/brltty-6.6/python3/Programs/ttb_native.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def573]
brltty-6.6-build/brltty-6.6/python3/Programs/ttb_translate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def574]
brltty-6.6-build/brltty-6.6/python3/Programs/tune_utils.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def575]
brltty-6.6-build/brltty-6.6/python3/Programs/unicode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def576]
brltty-6.6-build/brltty-6.6/python3/Programs/unicode.c:64:12: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 62| do {
# 63| if (*current == end) return 0;
# 64|-> } while (u_getCombiningClass(*(*current)++));
# 65|
# 66| return 1;
Error: GCC_ANALYZER_WARNING (CWE-457): [#def577]
brltty-6.6-build/brltty-6.6/python3/Programs/unicode.c: scope_hint: In function ‘nextBaseCharacter’
brltty-6.6-build/brltty-6.6/python3/Programs/unicode.c:64:32: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘**current_9(D)’
/usr/include/unicode/platform.h:25: included_from: Included from here.
/usr/include/unicode/ptypes.h:52: included_from: Included from here.
/usr/include/unicode/umachine.h:46: included_from: Included from here.
/usr/include/unicode/uversion.h:30: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Programs/unicode.c:28: included_from: Included from here.
# 62| do {
# 63| if (*current == end) return 0;
# 64|-> } while (u_getCombiningClass(*(*current)++));
# 65|
# 66| return 1;
Error: CLANG_WARNING: [#def578]
brltty-6.6-build/brltty-6.6/python3/Programs/unicode.c:342:14: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller
# 340| wchar_t decomposed[0X10];
# 341| size_t count = decomposeCharacter(character, decomposed, sizeof(decomposed));
# 342|-> if (count) return decomposed[0];
# 343| return 0;
# 344| }
Error: CPPCHECK_WARNING: [#def579]
brltty-6.6-build/brltty-6.6/python3/Programs/update.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def580]
brltty-6.6-build/brltty-6.6/python3/Programs/update.c:139:11: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 137| const ScreenCharacter *character, unsigned char *cell, wchar_t *text
# 138| ) {
# 139|-> *cell = convertCharacterToDots(textTable, character->text);
# 140| *text = character->text;
# 141|
Error: CLANG_WARNING: [#def581]
brltty-6.6-build/brltty-6.6/python3/Programs/update.c:172:42: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
# 170| const ScreenCharacter *character, unsigned char *cell, wchar_t *text
# 171| ) {
# 172|-> *text = UNICODE_BRAILLE_ROW | (*cell = convertAttributesToDots(attributesTable, character->attributes));
# 173| }
# 174|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
brltty-6.6-build/brltty-6.6/python3/Programs/update.c: scope_hint: In function ‘ensureContractedOffsetsSize’
brltty-6.6-build/brltty-6.6/python3/Programs/update.c:267:34: warning[-Wanalyzer-malloc-leak]: leak of ‘newArrayets’
brltty-6.6-build/brltty-6.6/python3/Headers/async_alarm.h:22: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Programs/update.c:31: included_from: Included from here.
brltty-6.6-build/brltty-6.6/python3/Headers/async_types_alarm.h:33:41: note: in definition of macro ‘ASYNC_ALARM_CALLBACK’
# 265|
# 266| brd->contracted.offsets.array = newArrayets;
# 267|-> brd->contracted.offsets.size = newSize;
# 268| }
# 269|
Error: CPPCHECK_WARNING (CWE-457): [#def583]
brltty-6.6-build/brltty-6.6/python3/Programs/update.c:300: warning[uninitvar]: Uninitialized variable: inputText
# 298| contractText(
# 299| contractionTable, &brd->contracted.cache,
# 300|-> inputText, &inputLength,
# 301| cells, &outputLength,
# 302| offsetsArray, getCursorOffsetForContracting()
Error: CPPCHECK_WARNING (CWE-457): [#def584]
brltty-6.6-build/brltty-6.6/python3/Programs/update.c:723: warning[uninitvar]: Uninitialized variable: characters
# 721| }
# 722|
# 723|-> return writeBrailleCharacters(mode, characters, length);
# 724| }
# 725|
Error: CLANG_WARNING: [#def585]
brltty-6.6-build/brltty-6.6/python3/Programs/update.c:746:3: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 744| }
# 745|
# 746|-> memcpy(*buffer, characters, newSize);
# 747| return 1;
# 748| }
Error: CPPCHECK_WARNING: [#def586]
brltty-6.6-build/brltty-6.6/python3/Programs/usb.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-457): [#def587]
brltty-6.6-build/brltty-6.6/python3/Programs/usb.c: scope_hint: In function ‘usbConfigurationDescriptor’
brltty-6.6-build/brltty-6.6/python3/Programs/usb.c:461:64: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘descriptor.configuration.wTotalLength’
brltty-6.6-build/brltty-6.6/python3/Programs/usb.c: scope_hint: In function ‘usbConfigurationDescriptor’
brltty-6.6-build/brltty-6.6/python3/Programs/usb.c: scope_hint: In function ‘usbConfigurationDescriptor’
# 459|
# 460| if (number < device->descriptor.bNumConfigurations) {
# 461|-> int length = getLittleEndian16(descriptor.configuration.wTotalLength);
# 462| UsbDescriptor *descriptors;
# 463|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def588]
brltty-6.6-build/brltty-6.6/python3/Programs/usb.c:490:16: warning[-Wanalyzer-malloc-leak]: leak of ‘descriptors’
# 488| }
# 489|
# 490|-> return device->configuration;
# 491| }
# 492|
Error: CLANG_WARNING: [#def589]
brltty-6.6-build/brltty-6.6/python3/Programs/usb.c:1014:5: warning[core.NullDereference]: Access to field 'destroyData' results in a dereference of a null pointer (loaded from field 'operations')
# 1012|
# 1013| if (device->serial.data) {
# 1014|-> device->serial.operations->destroyData(device->serial.data);
# 1015| device->serial.data = NULL;
# 1016| }
Error: CLANG_WARNING: [#def590]
brltty-6.6-build/brltty-6.6/python3/Programs/usb.c:1352:9: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 1350|
# 1351| if (length < count) count = length;
# 1352|-> memcpy(target, endpoint->direction.input.completed.buffer, count);
# 1353|
# 1354| if ((endpoint->direction.input.completed.length -= count)) {
Error: CLANG_WARNING: [#def591]
brltty-6.6-build/brltty-6.6/python3/Programs/usb.c:1693:33: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 1691|
# 1692| {
# 1693|-> uint16_t vendorIdentifier = getLittleEndian16(descriptor.idVendor);
# 1694|
# 1695| if (vendorIdentifier) {
Error: CPPCHECK_WARNING: [#def592]
brltty-6.6-build/brltty-6.6/python3/Programs/usb_ch341.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def593]
brltty-6.6-build/brltty-6.6/python3/Programs/usb_cp2101.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def594]
brltty-6.6-build/brltty-6.6/python3/Programs/usb_linux.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def595]
brltty-6.6-build/brltty-6.6/python3/Programs/usb_linux.c:1293: error[uninitvar]: Uninitialized variable: &length
# 1291| char path[strlen(*format) + (2 * 0X10) + 1];
# 1292|
# 1293|-> snprintf(path, sizeof(path), *format, &length, bus, device, minor);
# 1294| path[length] = 0;
# 1295|
Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
brltty-6.6-build/brltty-6.6/python3/Programs/usb_linux.c: scope_hint: In function ‘usbReadHostDeviceDescriptor’
brltty-6.6-build/brltty-6.6/python3/Programs/usb_linux.c:1347:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 1345|
# 1346| if (file != -1) {
# 1347|-> int count = read(file, &host->usbDescriptor, UsbDescriptorSize_Device);
# 1348|
# 1349| if (count == -1) {
Error: CPPCHECK_WARNING: [#def597]
brltty-6.6-build/brltty-6.6/python3/Programs/usb_serial.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def598]
brltty-6.6-build/brltty-6.6/python3/Programs/utf8.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def599]
brltty-6.6-build/brltty-6.6/python3/Programs/variables.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def600]
brltty-6.6-build/brltty-6.6/python3/Programs/xbrlapi.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def601]
brltty-6.6-build/brltty-6.6/python3/Programs/xbrlapi.c:381:11: warning[core.NullDereference]: Access to field 'win' results in a dereference of a null pointer (loaded from variable 'cur')
# 379| if (!(cur=malloc(sizeof(struct window))))
# 380| fatal_errno("malloc(struct window)",NULL);
# 381|-> cur->win=win;
# 382| cur->wm_name=wm_name;
# 383| cur->root=root;
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-221.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | brltty-6.6-17.fc41 |
store-results-to | /tmp/tmpmefs_f0f/brltty-6.6-17.fc41.tar.xz |
time-created | 2024-07-03 12:19:38 |
time-finished | 2024-07-03 12:32:51 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpmefs_f0f/brltty-6.6-17.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpmefs_f0f/brltty-6.6-17.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |