summaryrefslogtreecommitdiffstats
path: root/src/compiler/blob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/blob.c')
-rw-r--r--src/compiler/blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/blob.c b/src/compiler/blob.c
index 8dd254fefc6..5e8671b7b44 100644
--- a/src/compiler/blob.c
+++ b/src/compiler/blob.c
@@ -256,7 +256,7 @@ 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)
+ if (blob->current <= blob->end && blob->end - blob->current >= size)
return true;
blob->overrun = true;