mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
committed by
Norman Feske
parent
518d157f76
commit
67fd3333e2
@@ -198,7 +198,8 @@ class Genode::Msgbuf_base : Noncopyable
|
||||
if (_data_size + num_bytes > _capacity) return;
|
||||
|
||||
/* copy buffer */
|
||||
memcpy(_data_last(), src_addr, num_bytes);
|
||||
if (src_addr && num_bytes)
|
||||
memcpy(_data_last(), src_addr, num_bytes);
|
||||
|
||||
/* increment write pointer to next dword-aligned value */
|
||||
_data_size += align_natural(num_bytes);
|
||||
|
||||
@@ -170,7 +170,7 @@ class Linker::Reloc_jmpslot_generic
|
||||
}
|
||||
}
|
||||
|
||||
Elf::Addr target_addr() const { return *_addr; }
|
||||
Elf::Addr target_addr() const { return _addr ? *_addr : 0; }
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user