[HB] Add comment

This commit is contained in:
Behdad Esfahbod 2009-08-04 02:14:24 -04:00
parent a97ce570ab
commit cf086adca1
1 changed files with 4 additions and 2 deletions

View File

@ -47,8 +47,10 @@ template <typename Type>
struct Record struct Record
{ {
inline bool sanitize (SANITIZE_ARG_DEF, const char *base) { inline bool sanitize (SANITIZE_ARG_DEF, const char *base) {
/* Note: Doesn't sanitize referenced object */ /* Note: Only accept ASCII-visible tags (mind DEL)
/* Only accept ASCII-visible tags (mind DEL) */ * This is one of the few times (only time?) we check
* for data integrity, as opposed o just boundary checks
*/
return (tag & 0x80808080) == 0 && offset.sanitize (SANITIZE_ARG, base); return (tag & 0x80808080) == 0 && offset.sanitize (SANITIZE_ARG, base);
} }