libs: decoder: h265: untaint loop control variable
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 8 Aug 2017 13:38:16 +0000 (15:38 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 8 Aug 2017 13:38:16 +0000 (15:38 +0200)
commitd879664a0ad55a65f8604be3a44375bc1117633b
tree93caffc95a5b3efce27269c96443c2321eafa80d
parent9eddf6c00458f9d611a4a3f5b343ec294538ae6b
libs: decoder: h265: untaint loop control variable

Coverity scan bug:

Scalars (for example, integers) are not properly
bounds-checked (sanitized) before being used as array or pointer
indexes, loop boundaries, or function arguments are considered as
tainted.

In this case, num_nals were not checked before used as loop control.
gst-libs/gst/vaapi/gstvaapidecoder_h265.c