mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 06:57:51 +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,
|
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);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user