Minor code cleanups
- Use
calloc
instead ofmalloc
and manual loops to zero array contents -
XvQueryEncodings
: avoid NULL deref if length is 0, butnum_encodings
is not -
XvQueryAdaptors
: avoid NULL deref if length is 0, butnum_adaptors
is not
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
calloc
instead of malloc
and manual loops to zero array contentsXvQueryEncodings
: avoid NULL deref if length is 0, but num_encodings
is notXvQueryAdaptors
: avoid NULL deref if length is 0, but num_adaptors
is not