Skip to content
Commit c010bcb8 authored by Giuseppe Bilotta's avatar Giuseppe Bilotta Committed by Adam Jackson
Browse files

randr: ProcRRGetOutputInfo: initialize memory



Running Xephyr under valgrind reveals that we're sending some
uninitialized memory over the wire (particularly, the leftover padding
that comes from rounding extraLen to the next 32-bit multiple).

Solve by calloc()ing the memory instead of malloc()ing (the alternative
would be to memset just the padding, but I'm not sure it's more
convenient.)

Signed-off-by: default avatarGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Reviewed-by: default avatarAdam Jackson <ajax@redhat.com>
(cherry picked from commit bb766ef1)
parent c3285706
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment