diff options
Diffstat (limited to 'util/tube.c')
-rw-r--r-- | util/tube.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/tube.c b/util/tube.c index 67294e056c4b..28c51d79d16d 100644 --- a/util/tube.c +++ b/util/tube.c @@ -360,6 +360,7 @@ int tube_read_msg(struct tube* tube, uint8_t** buf, uint32_t* len, } d += r; } + log_assert(*len < 65536*2); *buf = (uint8_t*)malloc(*len); if(!*buf) { log_err("tube read out of memory"); |