mesa: avoid segfault in GetProgramPipelineInfoLog when no length
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 12 Feb 2016 19:23:30 +0000 (14:23 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 12 Feb 2016 23:22:50 +0000 (18:22 -0500)
commitf56b5de877c165fd89fbc670c4bd64f4f9637643
treec9c31a5a13c6e5035ea3633b76bfefa1decbba1b
parentf82ff6207ca98c153d5dc24319f86146d55ae230
mesa: avoid segfault in GetProgramPipelineInfoLog when no length

If there is no pipe info log, we would unconditionally deref length,
which was only optionally there. _mesa_copy_string handles the source
being null, as well as the length, so may as well just always call it.

Fixes a segfault in

dEQP-GLES31.functional.state_query.program_pipeline.info_log

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/pipelineobj.c