Re: macaddr8 accepts one trailing character after a complete address

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: wangyang25(at)otcaix(dot)iscas(dot)ac(dot)cn
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: macaddr8 accepts one trailing character after a complete address
Date: 2026-11-24 14:17:57
Message-ID: 2914AF96-85DF-421A-A414-218525F6F98B@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> On 23 Nov 2026, at 12:20, wangyang25(at)otcaix(dot)iscas(dot)ac(dot)cn wrote:

> BUG #19583 (https://www.postgresql.org/message-id/19583-ca7c85d40164f18b@postgresql.org) concerns overlong octet fields in the separate macaddr_in() parser. Its discussion notes that macaddr8_in() uses a hand-written parser; this report concerns that parser's handling of a single unconsumed character after a complete address.

So why start a new thread with a long LLM generated blob of text, without a
proposed patch to fix it, when replying to that thread with "Oh, it also
accepts one trailing byte of garbage without causing incorrect results" would
have been more helpful?

--
Daniel Gustafsson

In response to

Browse pgsql-bugs by date

  From Date Subject
Previous Message Jesper St John 2026-11-24 13:06:31 Re: Timing issue in pg_basebackup