Branch: Tag:

2018-08-28

2018-08-28 10:07:41 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Cpp: Fixed infinite loop.

3567:    BEGIN_AGGREGATE_ARRAY(d->args) {    int arg=0;    -  while (DATA(pos) != ')') { +  while ((pos < len) && (DATA(pos) != ')')) {    PCHARP arg_start;    size_t arg_len;    if(arg) {
3578:       while(1)    { -  if(pos+1>len) +  if(pos>=len)    {    INT_TYPE save_line = this->current_line;    this->current_line = start_line;