Asan: fix invalid memory access

Change-Id: I7a2acd99f3a8cb143c2ad1c978dfa4b02bf54464
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>