Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-05-20 13:42:37 UTC
Modified files:
Tag: u2_10_12_branch
ircd/ircd_parser.y ChangeLog
Log message:
Fix SF#1696437 by prohibiting not-all-alphabetic pseudo commands.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.183 ircu2.10/ChangeLog:1.710.2.184
--- ircu2.10/ChangeLog:1.710.2.183 Sun May 20 06:25:47 2007
+++ ircu2.10/ChangeLog Sun May 20 06:42:27 2007
@@ -1,5 +1,10 @@
2007-05-20 Michael Poole <[EMAIL PROTECTED]>
+ * ircd/ircd_parser.y (pseudoblock): Forbid pseudo commands that
+ are not all alphabetic characters.
+
+2007-05-20 Michael Poole <[EMAIL PROTECTED]>
+
* configure.in (maxcon): Check that maximum connections is
sufficiently large to avoid underflow in MAXCLIENTS.
Index: ircu2.10/ircd/ircd_parser.y
diff -u ircu2.10/ircd/ircd_parser.y:1.56.2.14
ircu2.10/ircd/ircd_parser.y:1.56.2.15
--- ircu2.10/ircd/ircd_parser.y:1.56.2.14 Tue Apr 10 20:25:21 2007
+++ ircu2.10/ircd/ircd_parser.y Sun May 20 06:42:27 2007
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
* USA.
- * $Id: ircd_parser.y,v 1.56.2.14 2007/04/11 03:25:21 entrope Exp $
+ * $Id: ircd_parser.y,v 1.56.2.15 2007/05/20 13:42:27 entrope Exp $
*/
%{
@@ -1090,6 +1090,8 @@
parse_error("Missing name in pseudo %s block", smap->command);
else if (!smap->services)
parse_error("Missing nick in pseudo %s block", smap->command);
+ else if (!strIsAlpha(smap->command))
+ parse_error("Pseudo command %s invalid: must all be letters",
smap->command);
else
valid = 1;
if (valid && register_mapping(smap))
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches