Replace XXX with explanation based on discussion with Jakub on -dev.

svn path=/trunk/; revision=52606
This commit is contained in:
Evan Huus 2013-10-14 20:35:56 +00:00
parent bef9e93490
commit 2e405d7261
1 changed files with 3 additions and 2 deletions

View File

@ -499,8 +499,9 @@ tvb_offset_exists(const tvbuff_t *tvb, const gint offset)
if (exception)
return FALSE;
/* XXX: Does not compute_offset guarantee this? I think we can just
* unconditionally return TRUE here... */
/* compute_offset only throws an exception on >, not >= because of the
* comment above check_offset_length_no_exception, but here we want the
* opposite behaviour so we check ourselves... */
if (abs_offset < tvb->length) {
return TRUE;
}