WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Increase size of sxpr parser input buffer

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Increase size of sxpr parser input buffer
From: Jody Belka <lists-xen@xxxxxxxx>
Date: Sat, 7 May 2005 19:11:08 +0200
Delivery-date: Sat, 07 May 2005 17:06:31 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.4i
Increase the size of the sxpr parser input buffer from 1024 characters, which
isn't long enough to hold larger domain configurations (xfrd transmits the
entire domain config sxpr as a single atom inside of another sxpr).

Signed-off-by: Jody Belka <knew (dash) xen (at) pimb (dot) org>

diff -durN xen.orig/tools/libxutil/sxpr_parser.h 
xen.new/tools/libxutil/sxpr_parser.h
--- xen.orig/tools/libxutil/sxpr_parser.h       2005-05-05 21:31:52.000000000 
+0200
+++ xen.new/tools/libxutil/sxpr_parser.h        2005-05-07 18:55:30.203005432 
+0200
@@ -28,7 +28,7 @@
 /** Size of a parser input buffer.
  * Tokens read must fit into this size (including trailing null).
  */
-#define PARSER_BUF_SIZE 1024
+#define PARSER_BUF_SIZE 4096
 
 struct Parser;
 typedef int ParserStateFn(struct Parser *, char c);

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>