Fwd: New Defects reported by Coverity Scan for RTEMS
Chris Johns
chrisj at rtems.org
Tue Oct 11 01:48:37 UTC 2022
Hi,
Thanks Coverity for picking up I forgot to add the new error string. :)
I will push the 1 line change.
Chris
On 10/10/2022 10:46 pm, Joel Sherrill wrote:
>
> ---------- Forwarded message ---------
> From: <scan-admin at coverity.com <mailto:scan-admin at coverity.com>>
> Date: Mon, Oct 10, 2022, 12:22 AM
> Subject: New Defects reported by Coverity Scan for RTEMS
> To: <build at rtems.org <mailto:build at rtems.org>>
>
>
> Hi,
>
> Please find the latest report on new defect(s) introduced to RTEMS found with
> Coverity Scan.
>
> 1 new defect(s) introduced to RTEMS found with Coverity Scan.
>
>
> New defect(s) Reported-by: Coverity Scan
> Showing 1 of 1 defect(s)
>
>
> ** CID 1515930: Memory - illegal accesses (OVERRUN)
> /cpukit/libmisc/rtems-fdt/rtems-fdt.c: 971 in rtems_fdt_strerror()
>
>
> ________________________________________________________________________________________________________
> *** CID 1515930: Memory - illegal accesses (OVERRUN)
> /cpukit/libmisc/rtems-fdt/rtems-fdt.c: 971 in rtems_fdt_strerror()
> 965 "blob has references"
> 966 };
> 967 if (errval > -RTEMS_FDT_ERR_RTEMS_MIN)
> 968 return fdt_strerror (errval);
> 969 if (errval < -RTEMS_FDT_ERR_MAX)
> 970 return "invalid error code";
>>>> CID 1515930: Memory - illegal accesses (OVERRUN)
>>>> Overrunning array "errors" of 5 4-byte elements at element index 5 (byte
> offset 23) using index "-errval - 100" (which evaluates to 5).
> 971 return errors[(-errval) - RTEMS_FDT_ERR_RTEMS_MIN];
> 972 }
> 973
> 974 int
> 975 rtems_fdt_prop_value(const char* const path,
> 976 const char* const propname,
>
>
> ________________________________________________________________________________________________________
> To view the defects in Coverity Scan visit,
> https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypUUzi-2FdSNmuyRB7BEFT8xQ4-2B8hpujh0hTgQljRGId4Dg-3D-3D3tGt_EU3W9teASMK00lBXX9WT4lsogDrkCcNZLvg-2FVxwAXMrx8nV9Pzi0hugn9s2FK6ZfLix8JmyqOKq3RkOqFldjBEAraGrjvpmsds-2B4Iivd5W95gEqWlcvVuG1EDWj6hubB5Z5pEtpqtddGnBcH49eyBbkHPbRwsax2k1rSx8EynyzF-2Fw-2BumI1vwItGf-2FpJNy6Us6XZ0o-2BY2bhnazRwWhumfA-3D-3D <https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypUUzi-2FdSNmuyRB7BEFT8xQ4-2B8hpujh0hTgQljRGId4Dg-3D-3D3tGt_EU3W9teASMK00lBXX9WT4lsogDrkCcNZLvg-2FVxwAXMrx8nV9Pzi0hugn9s2FK6ZfLix8JmyqOKq3RkOqFldjBEAraGrjvpmsds-2B4Iivd5W95gEqWlcvVuG1EDWj6hubB5Z5pEtpqtddGnBcH49eyBbkHPbRwsax2k1rSx8EynyzF-2Fw-2BumI1vwItGf-2FpJNy6Us6XZ0o-2BY2bhnazRwWhumfA-3D-3D>
>
> _______________________________________________
> build mailing list
> build at rtems.org <mailto:build at rtems.org>
> http://lists.rtems.org/mailman/listinfo/build
> <http://lists.rtems.org/mailman/listinfo/build>
More information about the devel
mailing list