The unified diff between revisions [fdd44441..] and [1d86a4f0..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'buffer.c'
#
#
# patch "buffer.c"
# from [2fe54eba701ee5c354f265c40914f2733519af16]
# to [8818b6d266850c114615e8780d216c588f89d3c1]
#
============================================================
--- buffer.c 2fe54eba701ee5c354f265c40914f2733519af16
+++ buffer.c 8818b6d266850c114615e8780d216c588f89d3c1
@@ -153,7 +153,7 @@ unsigned char buf_getbyte(buffer* buf) {
unsigned char buf_getbyte(buffer* buf) {
/* This check is really just ==, but the >= allows us to check for the
- * assert()able case of pos > len, which should _never_ happen. */
+ * bad case of pos > len, which should _never_ happen. */
if (buf->pos >= buf->len) {
dropbear_exit("bad buf_getbyte");
}
@@ -270,7 +270,7 @@ void buf_putmpint(buffer* buf, mp_int *
unsigned int len, pad = 0;
TRACE(("enter buf_putmpint"))
- assert(mp != NULL);
+ dropbear_assert(mp != NULL);
if (SIGN(mp) == MP_NEG) {
dropbear_exit("negative bignum");