[CWB] [cwb:bugs] #64 CQP accepts negative repetition counts

Stefan Evert schtepf at users.sf.net
Sat Aug 19 12:07:17 CEST 2017


Analysis of the problem:
* CQP parser accepts any integer numbers in repetition counts, without checking their validity
* to make matters worse, the code -1 is used internally for infinite repetition, i.e. * is equivalent to the range (0, -1) and + to the range (1, -1)

Solution: modify parser to abort with syntax errors if repetition count isn't valid.


---

** [bugs:#64] CQP accepts negative repetition counts**

**Status:** open
**Group:** TODO-3.5
**Created:** Sat Aug 19, 2017 10:04 AM UTC by Stefan Evert
**Last Updated:** Sat Aug 19, 2017 10:04 AM UTC
**Owner:** Stefan Evert


CQP accepts negative repetition counts such as (...){-1}, as well as invalid repetition ranges such as (...){3,0} and (...){2,1}.  All these examples lead to unexpected behaviour, segmentations faults or out of memory conditions.


---

Sent from sourceforge.net because cwb at sslmit.unibo.it is subscribed to https://sourceforge.net/p/cwb/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/cwb/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20170819/143937a3/attachment-0001.html>


More information about the CWB mailing list