diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-10-26 22:52:07 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-10-26 22:52:07 +0800 |
commit | 1260fbc5cdfb0da544cebdaa3af801c7aa52ebcb (patch) | |
tree | bc89e9c29cc006ab915bf88c04a7b521120426d8 /buffer.c | |
parent | acd6a22a0c2204b3129131ff41fd6f55281423a4 (diff) |
Fix fuzz-sshpacketmutator to work
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -188,6 +188,7 @@ unsigned char* buf_getptr(const buffer* buf, unsigned int len) { unsigned char* buf_getwriteptr(const buffer* buf, unsigned int len) { if (len > BUF_MAX_INCR || buf->pos + len > buf->size) { + abort(); dropbear_exit("Bad buf_getwriteptr"); } return &buf->data[buf->pos]; |