#4341 closed defect (fixed)

fastlz.c: Unused value error spotted by Coverity

Reported by: Ryan Long Owned by: Ryan Long <ryan.long@…>
Priority: normal Milestone: 6.1
Component: lib/dl Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

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;

Change History (1)

comment:1 Changed on Apr 8, 2021 at 11:02:13 PM by Ryan Long <ryan.long@…>

Owner: set to Ryan Long <ryan.long@…>
Resolution: fixed
Status: newclosed

In 09d811b/rtems:

fastlz.c: Unused value (CID #1399751)

CID 1399751: Unused value in fastlz2_compress().

Closes #4341

Note: See TracTickets for help on using tickets.