mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 22:47:50 +00: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:
parent
6712eac7e6
commit
9de61e7014
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user