Task #77697 - fixed.err
back to task #77697download
Error: CPPCHECK_WARNING (CWE-628):
espeak-ng-1.51.1/src/libespeak-ng/compiledata.c:1318: warning[invalidFunctionArg]: Invalid fputc() argument nr 1. The value is -128 but the valid values are '0:'.
# 1316| if (sample2 < -128)
# 1317| sample2 = -128;
# 1318|-> fputc(sample2, f_phdata);
# 1319| }
# 1320| }
Error: CPPCHECK_WARNING (CWE-457):
espeak-ng-1.51.1/src/libespeak-ng/compiledata.c:1422: warning[uninitvar]: Uninitialized variable: env
# 1420|
# 1421| displ = ftell(f_phdata);
# 1422|-> fwrite(env, 1, ENV_LEN, f_phdata);
# 1423|
# 1424| return displ;
Error: CPPCHECK_WARNING (CWE-758):
espeak-ng-1.51.1/src/libespeak-ng/compiledict.c:191: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 189|
# 190| for (ix = 8; ix < 64; ix++) {
# 191|-> if (((ix < 30) && (flags[0] & (1 << ix))) || ((ix >= 0x20) && (flags[1] & (1 << (ix-0x20))))) {
# 192| name = LookupMnemName(mnem_flags, ix);
# 193| len = strlen(name) + 1;
Error: CPPCHECK_WARNING (CWE-404):
espeak-ng-1.51.1/src/libespeak-ng/synthdata.c:85: error[resourceLeak]: Resource leak: f_in
# 83| if (length == 0) {
# 84| *ptr = NULL;
# 85|-> return 0;
# 86| }
# 87|
Error: CPPCHECK_WARNING (CWE-562):
espeak-ng-1.51.1/src/libespeak-ng/translate.c:2498: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
# 2496| }
# 2497|
# 2498|-> tr->clause_end = &sbuf[ix-1];
# 2499| sbuf[ix] = 0;
# 2500| words[0].pre_pause = 0; // don't add extra pause at beginning of clause
Error: CPPCHECK_WARNING (CWE-476):
espeak-ng-1.51.1/src/libespeak-ng/voices.c:338: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: voice_data
# 336|
# 337| memcpy(p, languages, langix);
# 338|-> voice_data->languages = p;
# 339|
# 340| strcpy(&p[langix], fname);
Error: CPPCHECK_WARNING (CWE-476):
espeak-ng-1.51.1/src/libespeak-ng/voices.c:341: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: voice_data
# 339|
# 340| strcpy(&p[langix], fname);
# 341|-> voice_data->identifier = &p[langix];
# 342| voice_data->name = &p[langix];
# 343|
Error: CPPCHECK_WARNING (CWE-476):
espeak-ng-1.51.1/src/libespeak-ng/voices.c:342: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: voice_data
# 340| strcpy(&p[langix], fname);
# 341| voice_data->identifier = &p[langix];
# 342|-> voice_data->name = &p[langix];
# 343|
# 344| if (vname[0] != 0) {
Error: CPPCHECK_WARNING (CWE-476):
espeak-ng-1.51.1/src/libespeak-ng/voices.c:350: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: voice_data
# 348| }
# 349|
# 350|-> voice_data->age = age;
# 351| voice_data->gender = gender;
# 352| voice_data->variant = 0;
Error: CPPCHECK_WARNING (CWE-476):
espeak-ng-1.51.1/src/libespeak-ng/voices.c:351: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: voice_data
# 349|
# 350| voice_data->age = age;
# 351|-> voice_data->gender = gender;
# 352| voice_data->variant = 0;
# 353| voice_data->xx1 = n_variants;
Error: CPPCHECK_WARNING (CWE-476):
espeak-ng-1.51.1/src/libespeak-ng/voices.c:352: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: voice_data
# 350| voice_data->age = age;
# 351| voice_data->gender = gender;
# 352|-> voice_data->variant = 0;
# 353| voice_data->xx1 = n_variants;
# 354| return voice_data;
Error: CPPCHECK_WARNING (CWE-476):
espeak-ng-1.51.1/src/libespeak-ng/voices.c:353: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: voice_data
# 351| voice_data->gender = gender;
# 352| voice_data->variant = 0;
# 353|-> voice_data->xx1 = n_variants;
# 354| return voice_data;
# 355| }