Branch: Tag:

2013-05-28

2013-05-28 18:04:11 by Martin Nilsson <nilsson@opera.com>

Don't use freed memory.

120:    Pike_error("Malformed data.\n");       event = (struct inotify_event *)data->str; -  pop_n_elems(args); +        if (event->len > data->len - sizeof(struct inotify_event))    Pike_error("Data missing.\n");
137:    push_int((int)(event->len + sizeof(struct inotify_event)));       f_aggregate(5); +  stack_swap(); +  pop_stack();   }      /*! @class _Instance