[dovecot-cvs] dovecot/src/lib-index mail-cache.c,1.13,1.14
	mail-modifylog.c,1.51,1.52
    cras at procontrol.fi 
    cras at procontrol.fi
       
    Sun Sep 21 20:21:39 EEST 2003
    
        - Previous message: [dovecot-cvs] dovecot/src/lib mempool-unsafe-datastack.c,NONE,1.1
	Makefile.am,1.33,1.34 mempool-alloconly.c,1.24,1.25
	mempool-datastack.c,1.9,1.10 mempool-system.c,1.13,1.14
	mempool.h,1.11,1.12 str.c,1.11,1.12 strfuncs.c,1.32,1.33
 
        - Next message: [dovecot-cvs] dovecot/src/lib-index/mbox mbox-index.c,1.80,1.81
	mbox-rewrite.c,1.61,1.62
 
         -  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
 
       
    
  
Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv17131/lib-index
Modified Files:
	mail-cache.c mail-modifylog.c 
Log Message:
data_stack_pool split into two: unsafe_data_stack_pool which works like
before, and a new one which verifies that stack frame stays the same
whenever the pool is accessed.
Index: mail-cache.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-cache.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- mail-cache.c	8 Sep 2003 00:41:11 -0000	1.13
+++ mail-cache.c	21 Sep 2003 16:21:37 -0000	1.14
@@ -540,7 +540,8 @@
 	int i;
 
 	memset(&cache_rec, 0, sizeof(cache_rec));
-	buffer = buffer_create_dynamic(data_stack_pool, 4096, (size_t)-1);
+	buffer = buffer_create_dynamic(pool_datastack_create(),
+				       4096, (size_t)-1);
 
         orig_cached_fields = mail_cache_get_fields(cache, rec);
 	cached_fields = orig_cached_fields & ~MAIL_CACHE_HEADERS_MASK;
@@ -1283,7 +1284,8 @@
 
 	t_push();
 
-	buffer = buffer_create_dynamic(data_stack_pool, 512, (size_t)-1);
+	buffer = buffer_create_dynamic(pool_datastack_create(),
+				       512, (size_t)-1);
 	while (*headers != NULL) {
 		if (buffer_get_used_size(buffer) != 0)
 			buffer_append(buffer, "\n", 1);
Index: mail-modifylog.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-modifylog.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- mail-modifylog.c	23 Jul 2003 00:29:32 -0000	1.51
+++ mail-modifylog.c	21 Sep 2003 16:21:37 -0000	1.52
@@ -1109,7 +1109,8 @@
 
 	i_assert((max_records+1) <
 		 SSIZE_T_MAX / sizeof(struct modify_log_expunge));
-	buf = buffer_create_static_hard(data_stack_pool, (max_records+1) *
+	buf = buffer_create_static_hard(pool_datastack_create(),
+					(max_records+1) *
 					sizeof(struct modify_log_expunge));
 
 	before = 0;
@@ -1215,7 +1216,8 @@
 
 	i_assert((max_records+1) <
 		 SSIZE_T_MAX / sizeof(struct modify_log_expunge));
-	buf = buffer_create_static_hard(data_stack_pool, (max_records+1) *
+	buf = buffer_create_static_hard(pool_datastack_create(),
+					(max_records+1) *
 					sizeof(struct modify_log_expunge));
 
 	before = 0;
    
    
        
	- Previous message: [dovecot-cvs] dovecot/src/lib mempool-unsafe-datastack.c,NONE,1.1
	Makefile.am,1.33,1.34 mempool-alloconly.c,1.24,1.25
	mempool-datastack.c,1.9,1.10 mempool-system.c,1.13,1.14
	mempool.h,1.11,1.12 str.c,1.11,1.12 strfuncs.c,1.32,1.33
 
	- Next message: [dovecot-cvs] dovecot/src/lib-index/mbox mbox-index.c,1.80,1.81
	mbox-rewrite.c,1.61,1.62
 
         -  Messages sorted by: 
              [ date ]
              [ thread ]
              [ subject ]
              [ author ]
         
 
       
More information about the dovecot-cvs
mailing list