glsl/blob: clear padding bytes
authorGrazvydas Ignotas <notasas@gmail.com>
Thu, 2 Mar 2017 23:59:57 +0000 (01:59 +0200)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 9 Mar 2017 09:41:02 +0000 (20:41 +1100)
commit8cd83a6c813964e38d8ce76fe0031a96f764b4d5
tree970aa2e401ae8b2da6345b82eb2e496e99f38743
parent61bbb25a080e48a8ca897ba7f6e73cc6a8e9b5b8
glsl/blob: clear padding bytes

Since blob is intended for serializing data, it's not a good idea to
leave padding holes with uninitialized data, which may leak heap
contents and hurt compression if the blob is later compressed, like
done by shader cache. Clear it.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/blob.c