From 4914d6babbb3e74261582195929431bf6da2c581 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 21 Feb 2013 10:53:27 -0500 Subject: [PATCH] fix skip_over off by one bug --- daemon/sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index ae36071d2..f00c928d1 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -437,7 +437,7 @@ static int skip_over(struct sdp_chopper *chop, str *where) { offset = (where->s - chop->input->s) + where->len; assert(offset >= 0); - assert(offset < chop->input->len); + assert(offset <= chop->input->len); len = offset - chop->position; if (len < 0) {