[RTEMS Project] #4341: fastlz.c: Unused value error spotted by Coverity
RTEMS trac
trac at rtems.org
Fri Mar 12 16:47:57 UTC 2021
#4341: fastlz.c: Unused value error spotted by Coverity
------------------------+--------------------
Reporter: Ryan Long | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: lib/dl | Version: 6
Severity: normal | Keywords:
Blocked By: | Blocking:
------------------------+--------------------
CID 1399751: Unused value in fastlz2_compress().
{{{
219 if(ip[0] == ip[-1] && FASTLZ_READU16(ip-1)==FASTLZ_READU16(ip+1))
220 {
221 distance = 1;
CID 1399751 (#1 of 1): Unused value (UNUSED_VALUE)assigned_pointer:
Assigning value from ip + 3 to ip here, but that stored value is
overwritten before it can be used.
222 ip += 3;
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4341>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list