An input to krb5_pac_parse() with a zero-length buffer at the end of
the PAC can cause an assertion failure in k5_pac_locate_buffer() due
to an off-by-one error. Correct the assertion.
[ghudson@mit.edu: edited commit message]
ticket: 9144 (new)
tags: pullup
target_version: 1.21-next
if (buffer == NULL)
return ENOENT;
- assert(buffer->offset < pac->data.length);
+ assert(buffer->offset <= pac->data.length);
assert(buffer->size <= pac->data.length - buffer->offset);
if (data_out != NULL)