mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-09 04:15:52 +00:00
clipboard: check validity of import rom before usage
The attached ROM dataspace may be not yet valid on the first update (or at any time beyond this explicit test case).
This commit is contained in:
parent
e13971fcf0
commit
d46ad98434
@ -114,6 +114,10 @@ class Subsystem
|
||||
PLOG("\n%s: import new content:", _name.string());
|
||||
|
||||
_import_rom.update();
|
||||
|
||||
if (!_import_rom.is_valid())
|
||||
return;
|
||||
|
||||
_import_content = _import_rom.local_addr<char>();
|
||||
_log_lines(_import_content, _import_rom.size());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user