Task #132584 - added.err

back to task #132584
download
Error: COMPILER_WARNING (CWE-563):
Pillow-12.3.0/src/_imaging.c: scope_hint: In function ‘_new_arrow’
Pillow-12.3.0/src/_imaging.c:331:15: warning[-Wunused-variable]: unused variable ‘ret’
#  331 |     PyObject *ret;
#      |               ^~~
#  329|       int xsize, ysize;
#  330|       PyObject *schema_capsule, *array_capsule;
#  331|->     PyObject *ret;
#  332|   
#  333|       if (!PyArg_ParseTuple(

Error: GCC_ANALYZER_WARNING (CWE-457):
Pillow-12.3.0/src/libImaging/Resample.c:254:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
Pillow-12.3.0/src/libImaging/Resample.c:711:1: enter_function: entry to ‘ImagingResample’
Pillow-12.3.0/src/libImaging/Resample.c:716:8: branch_false: following ‘false’ branch...
Pillow-12.3.0/src/libImaging/Resample.c:720:9: branch_false: ...to here
Pillow-12.3.0/src/libImaging/Resample.c:720:8: branch_true: following ‘true’ branch...
Pillow-12.3.0/src/libImaging/Resample.c:721:13: branch_true: ...to here
Pillow-12.3.0/src/libImaging/Resample.c:721:12: branch_true: following ‘true’ branch...
Pillow-12.3.0/src/libImaging/Resample.c:747:5: branch_true: ...to here
Pillow-12.3.0/src/libImaging/Resample.c:767:12: call_function: calling ‘ImagingResampleInner’ from ‘ImagingResample’
#  252|           if (ww != 0.0) {
#  253|               for (x = 0; x < xmax; x++) {
#  254|->                 k[x] /= ww;
#  255|               }
#  256|           }

Error: GCC_ANALYZER_WARNING (CWE-457):
Pillow-12.3.0/src/libImaging/Resample.c:802:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*bounds_vert’
Pillow-12.3.0/src/libImaging/Resample.c:711:1: enter_function: entry to ‘ImagingResample’
Pillow-12.3.0/src/libImaging/Resample.c:716:8: branch_false: following ‘false’ branch...
Pillow-12.3.0/src/libImaging/Resample.c:720:9: branch_false: ...to here
Pillow-12.3.0/src/libImaging/Resample.c:720:8: branch_false: following ‘false’ branch...
Pillow-12.3.0/src/libImaging/Resample.c:727:16: branch_false: ...to here
Pillow-12.3.0/src/libImaging/Resample.c:727:15: branch_false: following ‘false’ branch...
Pillow-12.3.0/src/libImaging/Resample.c:731:9: branch_false: ...to here
Pillow-12.3.0/src/libImaging/Resample.c:767:12: call_function: calling ‘ImagingResampleInner’ from ‘ImagingResample’
#  800|   
#  801|       // First used row in the source image
#  802|->     ybox_first = bounds_vert[0];
#  803|       // Last used row in the source image
#  804|       ybox_last = bounds_vert[ysize * 2 - 2] + bounds_vert[ysize * 2 - 1];

Error: GCC_ANALYZER_WARNING (CWE-401):
Pillow-12.3.0/src/libImaging/Storage.c:399:1: warning[-Wanalyzer-malloc-leak]: leak of ‘ptr’
Pillow-12.3.0/src/libImaging/Storage.c:583:1: enter_function: entry to ‘ImagingNewInternal’
Pillow-12.3.0/src/libImaging/Storage.c:591:8: branch_false: following ‘false’ branch...
Pillow-12.3.0/src/libImaging/Storage.c:596:19: branch_false: ...to here
Pillow-12.3.0/src/libImaging/Storage.c:596:19: call_function: calling ‘ImagingAllocateArray’ from ‘ImagingNewInternal’
#  397|           arena->stats_freed_blocks += 1;
#  398|       }
#  399|-> }
#  400|   
#  401|   static void