[HB] Add comment
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 4 Aug 2009 06:14:24 +0000 (02:14 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 2 Nov 2009 19:40:28 +0000 (14:40 -0500)
src/hb-ot-layout-common-private.hh

index 596acd6..6cee085 100644 (file)
@@ -47,8 +47,10 @@ template <typename Type>
 struct Record
 {
   inline bool sanitize (SANITIZE_ARG_DEF, const char *base) {
-    /* Note: Doesn't sanitize referenced object */
-    /* Only accept ASCII-visible tags (mind DEL) */
+    /* Note: 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);
   }