mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 03:06:39 +00:00
Never throw in 'Attached_rom_dataspace::size'
If the ROM service returned in invalid dataspace, reflect this condition via a size of zero instead of triggering an exception of type 'Reconstructible<Attached_dataspace>::Deref_unconstructed_object'. Issue #3606
This commit is contained in:
parent
c6445da654
commit
d70cf314d8
@ -85,7 +85,7 @@ class Genode::Attached_rom_dataspace
|
|||||||
template <typename T> T const *local_addr() const {
|
template <typename T> T const *local_addr() const {
|
||||||
return _ds->local_addr<T const>(); }
|
return _ds->local_addr<T const>(); }
|
||||||
|
|
||||||
size_t size() const { return _ds->size(); }
|
size_t size() const { return _ds.constructed() ? _ds->size() : 0; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register signal handler for ROM module changes
|
* Register signal handler for ROM module changes
|
||||||
|
Loading…
Reference in New Issue
Block a user