base: detect truncated session args

This patch reflects the truncation of session arguments (e.g., by very
long session labels) by denying the session request.

Fixes #4037
This commit is contained in:
Norman Feske 2021-03-03 17:35:57 +01:00
parent 6712eac7e6
commit 9de61e7014

View File

@ -121,6 +121,11 @@ namespace {
Parent::Session_args const &args, Parent::Session_args const &args,
Affinity const &affinity) override Affinity const &affinity) override
{ {
if (!args.valid_string()) {
warning(name.string(), " session denied because of truncated arguments");
throw Service_denied();
}
Mutex::Guard guard(_mutex); Mutex::Guard guard(_mutex);
/* /*