Add padding helper

Signed-off-by: Michael Buesch <m@bues.ch>
memarea: Add boundary checks

Signed-off-by: Michael Buesch <m@bues.ch>
corserver: Add specified length to memory message

Signed-off-by: Michael Buesch <m@bues.ch>