<commit_before>#ifndef ACL_CACHE_H
#define ACL_CACHE_H

struct acl_backend;
struct acl_rights_update;

struct acl_mask {
	pool_t pool;

	/* mask[] size as bytes */
	unsigned int size;

	/* variable length bitmask */
	unsigned char mask[1];
};
#define SIZEOF_ACL_MASK(count) \
	(sizeof(pool_t) + sizeof(unsigned int) + \
	 (count + CHAR_BIT-1) / CHAR_BIT)

struct acl_cache *acl_cache_init(struct acl_backend *backend,<commit_msg>SIZEOF_ACL_MASK() macro wasn't used as it was intended. Changed so it allocates enough memory for the struct.<commit_after>#ifndef ACL_CACHE_H
#define ACL_CACHE_H

struct acl_backend;
struct acl_rights_update;

struct acl_mask {
	pool_t pool;

	/* mask[] size as bytes */
	unsigned int size;

	/* variable length bitmask */
	unsigned char mask[1];
};
#define SIZEOF_ACL_MASK(bitmask_size) \
	(sizeof(pool_t) + sizeof(unsigned int) + (bitmask_size))

struct acl_cache *acl_cache_init(struct acl_backend *backend,
{'fraction_non_alphanumeric': 0.10106382978723404, 'fraction_numerical': 0.0031914893617021275, 'mean_word_length': 5.315436241610739, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7630838', 'n_tokens_mistral': 349, 'n_tokens_neox': 332, 'n_words': 89}