t9117: test specifying full url to git svn init -T
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index d7ff46ec4a016c6ab7d233b9d4a196ecde623528..b829410f6da0afc14353b4621d2fdf874181a9f7 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -1369,6 +1369,16 @@ extern void free_pack_by_name(const char *);
 extern void clear_delta_base_cache(void);
 extern struct packed_git *add_packed_git(const char *path, size_t path_len, int local);
 
+/*
+ * Make sure that a pointer access into an mmap'd index file is within bounds,
+ * and can provide at least 8 bytes of data.
+ *
+ * Note that this is only necessary for variable-length segments of the file
+ * (like the 64-bit extended offset table), as we compare the size to the
+ * fixed-length parts when we open the file.
+ */
+extern void check_pack_index_ptr(const struct packed_git *p, const void *ptr);
+
 /*
  * Return the SHA-1 of the nth object within the specified packfile.
  * Open the index if it is not already open.  The return value points