mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01: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:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user