Opened 6 weeks ago

Last modified 5 weeks ago

#28816 new defect

Log a bug for uncompressed data on a compressed connection

Reported by: teor Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: technical-debt, tor-dir, tor-bwauth
Cc: Actual Points:
Parent ID: #21377 Points:
Reviewer: Sponsor:


In #21377, we discovered that it is easy to set the compression state on a connection, but add uncompressed data to that connection.

We should log a bug warning when:

  • conn->compress_state is not NULL, and connection_buf_add() is called
  • conn->compress_state is NULL, and connection_buf_add_compress() is called

Child Tickets

Change History (1)

comment:1 Changed 5 weeks ago by teor

Parent ID: #21377

Let's think about fixing this technical debt before merging #21377.

Note: See TracTickets for help on using tickets.