summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/blob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/glsl/blob.c')
-rw-r--r--src/compiler/glsl/blob.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/glsl/blob.c b/src/compiler/glsl/blob.c
index 3c4aed8524d..e837cdf2a0b 100644
--- a/src/compiler/glsl/blob.c
+++ b/src/compiler/glsl/blob.c
@@ -207,6 +207,9 @@ blob_reader_init(struct blob_reader *blob, uint8_t *data, size_t size)
static bool
ensure_can_read(struct blob_reader *blob, size_t size)
{
+ if (blob->overrun)
+ return false;
+
if (blob->current < blob->end && blob->end - blob->current >= size)
return true;