BUG #18889: /src/backend/utils/adt/network.c condition is always false - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #18889: /src/backend/utils/adt/network.c condition is always false
Date
Msg-id 18889-73d4f19e953a629e@postgresql.org
Whole thread Raw
Responses Re: BUG #18889: /src/backend/utils/adt/network.c condition is always false
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      18889
Logged by:          Daniel Elishakov
Email address:      dan-eli@mail.ru
PostgreSQL version: 17.4
Operating system:   Ubuntu 20.04
Description:

On line 282 there is a check of nb < 0, which is always false, so i think it
is better to be replaced with 'Assert(nb > 0);'


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #18888: /src/interfaces/ecpg/preproc/descriptor.c possible NULL dereference
Next
From: PG Bug reporting form
Date:
Subject: BUG #18890: /src/timezone/localtime.c condition always false