Opened 6 days ago

Last modified 31 hours ago

#30180 merge_ready defect

CID 1444641: REVERSE_INULL in test_hs_cache.c

Reported by: nickm Owned by: nickm
Priority: Medium Milestone: Tor: 0.4.1.x-final
Component: Core Tor/Tor Version:
Severity: Normal Keywords:
Cc: Actual Points: 0
Parent ID: Points: 0
Reviewer: asn Sponsor:


Just reported today.

** CID 1444641:  Null pointer dereferences  (REVERSE_INULL)
/src/test/test_hs_cache.c: 265 in helper_fetch_desc_from_hsdir()
259                             &received_desc, &body_used, HS_DESC_MAX_LEN, 0);
260         tor_free(headers);
261       }
263      done:
264       tor_free(hsdir_query_str);
>>>     CID 1444641:  Null pointer dereferences  (REVERSE_INULL)
>>>     Null-checking "conn" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
265       if (conn)
266         connection_free_minimal(TO_CONN(conn));
268       return received_desc;
269     }

Child Tickets

Change History (4)

comment:1 Changed 6 days ago by nickm

Actual Points: 0

See branch ticket30180 with PR at .

This is not actually a bug, so I recommend no backport.

comment:2 Changed 6 days ago by nickm

Status: assignedneeds_review

comment:3 Changed 5 days ago by asn

Reviewer: asn

comment:4 Changed 31 hours ago by asn

Status: needs_reviewmerge_ready


Note: See TracTickets for help on using tickets.