mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
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:
@@ -121,6 +121,11 @@ namespace {
|
||||
Parent::Session_args const &args,
|
||||
Affinity const &affinity) override
|
||||
{
|
||||
if (!args.valid_string()) {
|
||||
warning(name.string(), " session denied because of truncated arguments");
|
||||
throw Service_denied();
|
||||
}
|
||||
|
||||
Mutex::Guard guard(_mutex);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user