Re: [Mesa-dev] [PATCH] mesa: In validate_program(), initialize errMsg for safety.

2011-08-05 Thread Chad Versace
On 07/30/2011 09:34 PM, Kenneth Graunke wrote: > validate_program relies on validate_shader_program to fill in errMsg; > empirically, there exist cases where that doesn't happen. > > While tracking those down may be worthwhile, initializing the string so > we don't try to ralloc_strdup random garb

[Mesa-dev] [PATCH] mesa: In validate_program(), initialize errMsg for safety.

2011-07-30 Thread Kenneth Graunke
validate_program relies on validate_shader_program to fill in errMsg; empirically, there exist cases where that doesn't happen. While tracking those down may be worthwhile, initializing the string so we don't try to ralloc_strdup random garbage also seems wise. Fixes issues caught by valgrind whi