]> git.ipfire.org Git - thirdparty/pdns.git/commit
There is no guarantee that the slog initializer is a compile-time constant. 16958/head
authorMiod Vallat <miod.vallat@powerdns.com>
Mon, 9 Mar 2026 08:51:42 +0000 (09:51 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Mon, 9 Mar 2026 11:09:03 +0000 (12:09 +0100)
commit8c7efc057981bcb2165fb6292ed3e98f8044354e
treea718242c413834fe85fd1abc6ee338f286683b88
parent365ee7a38020ad9923550ea3736771257242d7bc
There is no guarantee that the slog initializer is a compile-time constant.

Therefore we can not safely assume it is safe to check its value in other
global constructors.

Reported by Coverity.

Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
12 files changed:
modules/bindbackend/bindbackend2.cc
modules/geoipbackend/geoipbackend.cc
modules/gmysqlbackend/gmysqlbackend.cc
modules/godbcbackend/godbcbackend.cc
modules/gpgsqlbackend/gpgsqlbackend.cc
modules/gsqlite3backend/gsqlite3backend.cc
modules/ldapbackend/ldapbackend.cc
modules/lmdbbackend/lmdbbackend.cc
modules/lua2backend/lua2backend.cc
modules/pipebackend/pipebackend.cc
modules/remotebackend/remotebackend.cc
modules/tinydnsbackend/tinydnsbackend.cc