Task #131487 - added.err

back to task #131487
download
Error: CPPCHECK_WARNING (CWE-562):
libXfont2-2.0.8/src/bitmap/bdfread.c:772: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  770|   	props[nextProp].value = (INT32) pState->resolution_x;
#  771|   	stringProps[nextProp] = FALSE;
#  772|-> 	pState->resolutionXProp = &props[nextProp];
#  773|   	nextProp++;
#  774|       }

Error: CPPCHECK_WARNING (CWE-562):
libXfont2-2.0.8/src/bitmap/bdfread.c:779: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  777|   	props[nextProp].value = (INT32) pState->resolution_y;
#  778|   	stringProps[nextProp] = FALSE;
#  779|-> 	pState->resolutionYProp = &props[nextProp];
#  780|   	nextProp++;
#  781|       }

Error: COMPILER_WARNING:
libXfont2-2.0.8/src/bitmap/bitscale.c: scope_hint: In function 'BitmapScaleBitmaps'
libXfont2-2.0.8/src/bitmap/bitscale.c:1514:54: warning[-Wformat=]: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'}
# 1514 |  fprintf(stderr, "Error: Couldn't allocate bitmaps (%d)\n", bytestoalloc);
#      |                                                     ~^      ~~~~~~~~~~~~
#      |                                                      |      |
#      |                                                      int    size_t {aka long unsigned int}
#      |                                                     %ld
# 1512|       bitmapFont->bitmaps = calloc(1, bytestoalloc);
# 1513|       if (!bitmapFont->bitmaps) {
# 1514|->  fprintf(stderr, "Error: Couldn't allocate bitmaps (%d)\n", bytestoalloc);
# 1515|   	goto bail;
# 1516|       }