summaryrefslogtreecommitdiffhomepage
path: root/buffer.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-10-26 22:52:07 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-10-26 22:52:07 +0800
commit1260fbc5cdfb0da544cebdaa3af801c7aa52ebcb (patch)
treebc89e9c29cc006ab915bf88c04a7b521120426d8 /buffer.c
parentacd6a22a0c2204b3129131ff41fd6f55281423a4 (diff)
Fix fuzz-sshpacketmutator to work
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/buffer.c b/buffer.c
index fee41d6..1397519 100644
--- a/buffer.c
+++ b/buffer.c
@@ -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];