genode/repos/os/src/server
Martin Stein f4a2d932e3 net: check packet data size in accessor
Instead of having a method validate_size in each packet class, check
sizes in the data accessor of the surrounding packet class. This packet
accessor is the one that casts the data pointer to the desired data type
so it is sensible that it also checks whether the desired type would
exceed the available RAM before doing the cast. This also fits nicely
the fact that for the top-level packet-class of a packet, the size must
not be checked (which was previously done).

Issue #465
2018-01-17 12:14:41 +01:00
..
blk_cache Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
chroot Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
clipboard Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
dynamic_rom Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
fs_log VFS: nonblocking interface 2017-08-28 16:49:38 +02:00
fs_report Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
fs_rom Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
input_filter Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
input_merger Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
iso9660 Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
loader Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
log_report Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
log_terminal Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
lx_block Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
lx_fs Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
mixer Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
nic_bridge net: check packet data size in accessor 2018-01-17 12:14:41 +01:00
nic_dump net: check packet data size in accessor 2018-01-17 12:14:41 +01:00
nic_loopback Replace Quota_exceeded by Insufficient_ram_quota 2017-05-31 13:16:05 +02:00
nic_router net: check packet data size in accessor 2018-01-17 12:14:41 +01:00
nit_fb nit_fb: fix resizing on framebuffer-mode change 2018-01-17 12:14:40 +01:00
nitpicker Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
part_blk Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
ram_blk Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
ram_fs Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
report_rom Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
rom_blk Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
rom_filter Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
rom_prefetcher Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
tar_rom Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
terminal_crosslink Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
terminal_log terminal_log: carriage-return on newline 2017-08-17 11:04:20 +02:00
trace_fs Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
tz_vmm Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
vfs Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00
vmm Follow practices suggested by "Effective C++" 2018-01-17 12:14:35 +01:00