On Wed, Sep 22, 2021 at 07:11:19PM -0400, Wietse Venema <wie...@porcupine.org> wrote:
> Viktor Dukhovni: > > On Wed, Sep 22, 2021 at 10:35:45PM +1000, raf wrote: > > > > > I just encountered a wierd thing (debian-11 stable, postfix-3.5.6-1+b1). > > > > Thanks for the bug report. > > > > > $ postconf -xdf proxy_read_maps > > > proxy_read_maps = all127.0.0.0/8 a.b.c.d/32 [::1]/128 > > > [a:b:c:d::e]/128 [fe80::]/64 hash:/etc/aliases, nis:mail.aliases > > > > The problem is an recursive reuse of a static buffer in the postconf(1) > > code (does not affect any other Postfix programs, ...) that expands the > > default value of mynetworks, when called recursively from expanding some > > other parameter. > > > > Patch below. > > Thanks. This is the result of lazy coding in a nasty language. > I should stop hidden static buffers, or switch to a language > has automatic destructors like C++ or Go. > > Wietse or Rust! :-) cheers, raf