diff buffer.c @ 1765:b688c884dad7

Fix fuzz-sshpacketmutator to work
author Matt Johnston <matt@ucc.asn.au>
date Mon, 26 Oct 2020 22:52:07 +0800
parents 064f5be2fc45
children 290caf301a4f
line wrap: on
line diff
--- a/buffer.c	Mon Oct 26 22:51:44 2020 +0800
+++ b/buffer.c	Mon Oct 26 22:52:07 2020 +0800
@@ -188,6 +188,7 @@
 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];