diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-20 12:02:40 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-20 12:02:40 +0000 |
commit | 1a61b42e8a5517c4eaffb1b9b1072a7eb9adce72 (patch) | |
tree | 1a2f949934611e2201e004b9e52c14d1b24535a1 /epan/emem.h | |
parent | b50ffb1c6b7a0474c1b1213ae91048026a48cb2e (diff) |
Add ep_verify_pointer()/se_verify_pointer() which checks whether the given pointer belongs in the seasonal/ephemeral pool.
svn path=/trunk/; revision=30011
Diffstat (limited to 'epan/emem.h')
-rw-r--r-- | epan/emem.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/epan/emem.h b/epan/emem.h index c878c22c4b..6a1d02c08e 100644 --- a/epan/emem.h +++ b/epan/emem.h @@ -465,6 +465,7 @@ emem_strbuf_t *ep_strbuf_append_c(emem_strbuf_t *strbuf, const gchar c); */ emem_strbuf_t *ep_strbuf_truncate(emem_strbuf_t *strbuf, gsize len); +void emem_print_tree(emem_tree_t* emem_tree); /* #define DEBUG_INTENSE_CANARY_CHECKS */ /* Helper to troubleshoot ep memory corruption @@ -482,8 +483,14 @@ void ep_check_canary_integrity(const char* fmt, ...); #define EP_CHECK_CANARY(dummy) #endif -void emem_print_tree(emem_tree_t* emem_tree); - - +/** + * Verify that the given pointer is of ephemeral/seasonal type. + * + * @param ptr The pointer to verify + * + * @return TRUE if the pointer belongs to the ephemeral/seasonal pool. + */ +gboolean ep_verify_pointer(const void *ptr); +gboolean se_verify_pointer(const void *ptr); #endif /* emem.h */ |