[596] in BarnOwl Developers
[D-O-H] r709 - / trunk/owl
daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:07:47 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Sun, 29 Apr 2007 20:45:43 -0400 (EDT)
Author: nelhage
Date: 2007-04-29 20:45:42 -0400 (Sun, 29 Apr 2007)
New Revision: 709
Modified:
/
trunk/owl/filter.c
Log:
r21206@phanatique: nelhage | 2007-04-29 20:45:16 -0400
Fixing a crash with filters like '( class )'
Property changes on:
___________________________________________________________________
Name: svk:merge
- 6122c8b4-0e12-0410-9533-8bcd7c66c992:/local/dirty-owl-hacks:24493
6aa88b72-b502-0410-8cb4-a5dd0230fb79:/owl-local:1356
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/barnowl:21133
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/d-o-h:18636
+ 6122c8b4-0e12-0410-9533-8bcd7c66c992:/local/dirty-owl-hacks:24493
6aa88b72-b502-0410-8cb4-a5dd0230fb79:/owl-local:1356
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/barnowl:21206
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/d-o-h:18636
Modified: trunk/owl/filter.c
===================================================================
--- trunk/owl/filter.c 2007-04-29 22:27:30 UTC (rev 708)
+++ trunk/owl/filter.c 2007-04-30 00:45:42 UTC (rev 709)
@@ -75,6 +75,7 @@
op = owl_filter_parse_expression(argc-i, argv+i, &skip);
if(!op) goto err;
i += skip;
+ if(i >= argc) goto err;
if(strcasecmp(argv[i++], ")")) goto err;
owl_filterelement_create_group(fe, op);
} else if(!strcasecmp(argv[i], "not")) {