(rr13): handle zero length bit strings
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6880 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -40,6 +40,9 @@ rr13(unsigned char *buf, size_t len)
|
||||
unsigned char *tmp;
|
||||
int bytes = (len + 7) / 8;
|
||||
int i;
|
||||
if(len == 0)
|
||||
return;
|
||||
{
|
||||
const int bits = 13 % len;
|
||||
const int lbit = len % 8;
|
||||
|
||||
@@ -72,6 +75,7 @@ rr13(unsigned char *buf, size_t len)
|
||||
}
|
||||
free(tmp);
|
||||
}
|
||||
}
|
||||
|
||||
/* Add `b' to `a', both beeing one's complement numbers. */
|
||||
static void
|
||||
|
Reference in New Issue
Block a user