[dovecot-cvs] dovecot/src/lib-index/mbox mbox-index.c,1.80,1.81 mbox-rewrite.c,1.61,1.62

cras at procontrol.fi cras at procontrol.fi
Sun Sep 21 20:21:39 EEST 2003


Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv17131/lib-index/mbox

Modified Files:
	mbox-index.c mbox-rewrite.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: mbox-index.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-index.c,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -d -r1.80 -r1.81
--- mbox-index.c	2 Sep 2003 22:33:33 -0000	1.80
+++ mbox-index.c	21 Sep 2003 16:21:37 -0000	1.81
@@ -219,7 +219,7 @@
 	}
 
 	/* we're at the 3rd field now, which begins the list of custom flags */
-	buf = buffer_create_dynamic(data_stack_pool,
+	buf = buffer_create_dynamic(pool_datastack_create(),
 				    MAIL_CUSTOM_FLAGS_COUNT *
 				    sizeof(const char *),
 				    MAX_CUSTOM_FLAGS * sizeof(const char *));

Index: mbox-rewrite.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-rewrite.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- mbox-rewrite.c	2 Sep 2003 22:33:33 -0000	1.61
+++ mbox-rewrite.c	21 Sep 2003 16:21:37 -0000	1.62
@@ -506,11 +506,12 @@
 
 	t_push();
 
-	input = i_stream_create_mmap(in_fd, data_stack_pool,
+	input = i_stream_create_mmap(in_fd, pool_datastack_create(),
 				     1024*256, 0, 0, FALSE);
 	i_stream_set_read_limit(input, size);
 
-	output = o_stream_create_file(out_fd, data_stack_pool, 1024, FALSE);
+	output = o_stream_create_file(out_fd, pool_datastack_create(),
+				      1024, FALSE);
 	o_stream_set_blocking(output, 60000, NULL, NULL);
 
 	ret = o_stream_send_istream(output, input);



More information about the dovecot-cvs mailing list