Hi,
Please find the latest report on new defect(s) introduced to Synchronet found with Coverity Scan.
1 new defect(s) introduced to Synchronet found with Coverity Scan.
2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 453600: (NULL_RETURNS)
/tmp/sbbs-May-06-2023/src/conio/genmap.c: 88 in main()
/tmp/sbbs-May-06-2023/src/conio/genmap.c: 89 in main()
/tmp/sbbs-May-06-2023/src/conio/genmap.c: 69 in main()
/tmp/sbbs-May-06-2023/src/conio/genmap.c: 78 in main()
________________________________________________________________________________________________________
*** CID 453600: (NULL_RETURNS)
/tmp/sbbs-May-06-2023/src/conio/genmap.c: 88 in main()
82 "#include \n"
83 "\n"
84 "extern const uint32_t r2y[16777216];\n"
85 "extern const uint32_t y2r[16777216];\n"
86 "\n"
87 "#endif\n");
>>> CID 453600: (NULL_RETURNS)
>>> Dereferencing a pointer that might be "NULL" "r" when calling "fwrite".
88 fwrite(r2y, 4, 1 << 24, r);
89 fwrite(y2r, 4, 1 << 24, y);
90 fclose(s);
91 fclose(h);
92 fclose(r);
93 fclose(y);
94 return 0;
/tmp/sbbs-May-06-2023/src/conio/genmap.c: 89 in main()
83 "\n"
84 "extern const uint32_t r2y[16777216];\n"
85 "extern const uint32_t y2r[16777216];\n"
86 "\n"
87 "#endif\n");
88 fwrite(r2y, 4, 1 << 24, r);
>>> CID 453600: (NULL_RETURNS)
>>> Dereferencing a pointer that might be "NULL" "y" when calling "fwrite".
89 fwrite(y2r, 4, 1 << 24, y);
90 fclose(s);
91 fclose(h);
92 fclose(r);
93 fclose(y);
94 return 0;
/tmp/sbbs-May-06-2023/src/conio/genmap.c: 69 in main()
63 char *mangle = "";
64
65 init_r2y();
66 if (argc > 1 && strcmp(argv[1], "win32") == 0)
67 mangle = "_";
68
>>> CID 453600: (NULL_RETURNS)
>>> Dereferencing a pointer that might be "NULL" "s" when calling "fprintf". [Note: The source code implementation of the function has been overridden by a builtin model.]
69 fprintf(s,
70 ".section .rodata\n"
71 ".global %sr2y\n"
72 ".global %sy2r\n"
73 ".align 4\n"
74 "%sr2y:\n"
/tmp/sbbs-May-06-2023/src/conio/genmap.c: 78 in main()
72 ".global %sy2r\n"
73 ".align 4\n"
74 "%sr2y:\n"
75 " .incbin \"r2y.bin\"\n"
76 "%sy2r:\n"
77 " .incbin \"y2r.bin\"\n", mangle, mangle, mangle, mangle);
>>> CID 453600: (NULL_RETURNS)
>>> Dereferencing a pointer that might be "NULL" "h" when calling "fprintf". [Note: The source code implementation of the function has been overridden by a builtin model.]
78 fprintf(h,
79 "#ifndef RGBMAP_H\n"
80 "#define RGBMAP_H\n"
81 "\n"
82 "#include \n"
83 "\n"
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yp-2FP9gGRhvFklLaQKuBylUrkMFB3WMR2p7qIYKYTZrh4BbWTBf-2B-2Fi5ZUVF-2Fo-2B6flxo-3D2OWw_g4j7BHlu96plUOfCQsO0yRjoWZCZl8YGnZ-2FUtT39hrA5TNjzrU6Rq5Mo9xdbzDwsTpy-2Bb09EocMoAjAvUXI0dqN9FjhoAs2WQX-2BupKjspvk11pluxiTxKgTDHQAhwzsXbwAERPEnGsAxkUULs14dstkoKyyk63U-2FI43vTGDPDLB-2BN8f1fqC8LeCf2cycw746w3RIwm3fIqgqrnx-2F8Y8WZA-3D-3D
--- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
|