server: Fix buffer overrun in map_view handler.
Because of padding at the end of the struct, sizeof(*view) is greater
than offsetof(struct memory_view, name[0]). Change the allocation to
overallocate slightly instead of underallocating slightly.
(cherry picked from commit 94d6e616)
Showing
Please
register
or
sign in
to comment