mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-21 18:06:50 +00:00
tar_rom: let unkown file throw Root::Invalid_args
This commit is contained in:
parent
61dd83a329
commit
e5b30847db
@ -148,7 +148,10 @@ class Rom_session_component : public Genode::Rpc_object<Genode::Rom_session>
|
|||||||
_tar_addr(tar_addr), _filename(filename), _file_addr(0), _file_size(0),
|
_tar_addr(tar_addr), _filename(filename), _file_addr(0), _file_size(0),
|
||||||
_tar_size(tar_size),
|
_tar_size(tar_size),
|
||||||
_file_ds(_init_file_ds())
|
_file_ds(_init_file_ds())
|
||||||
{ }
|
{
|
||||||
|
if (!_file_ds.valid())
|
||||||
|
throw Genode::Root::Invalid_args();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destructor
|
* Destructor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user