]> granicus.if.org Git - pgbouncer/commit
add_database: fail gracefully if too long db name
authorMarko Kreen <markokr@gmail.com>
Mon, 10 Sep 2012 10:07:43 +0000 (13:07 +0300)
committerMarko Kreen <markokr@gmail.com>
Mon, 10 Sep 2012 10:07:43 +0000 (13:07 +0300)
commit4b92112b820830b30cd7bc91bef3dd8f35305525
treecef757d29e0f00bd9e27e703c8904f4db48ba51c
parente3b77fb1cc83e11dd7f83b421743579a4b827587
add_database: fail gracefully if too long db name

Truncating & adding can lead to fatal() later.

It was not an issue before, but with audodb (* in [databases] section)
the database name can some from network, thus allowing remote shutdown..
src/objects.c