mesa: errors: validate the length of null terminated string
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 26 Nov 2015 00:36:16 +0000 (00:36 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 3 Dec 2015 19:21:08 +0000 (19:21 +0000)
commit622186fbdf47e4c77aadba3e38567636ecbcccf5
treecbd108b675bea1248acec4aff9e4f20035631075
parent66fea8bd9662c8fc62d87cafce89adc27e3172a2
mesa: errors: validate the length of null terminated string

We're about to rework the meaning of gl_debug_message::length to only
store the user provided data. Thus we should add an explicit validation
for null terminated strings.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/mesa/main/errors.c