Commits

Ruslan Osmanov committed f97ee7c

Added checks preventing memory access violation

  • Participants
  • Parent commits cb9a1b9

Comments (0)

Files changed (1)

 {
 	php_event_bevent_t *bev = (php_event_bevent_t *) obj;
 
+	if (!bev->bevent) {
+		return FAILURE;
+	}
+
 	MAKE_STD_ZVAL(*retval);
 
 	/* XXX Is it safe to cache it here? */
 {
 	php_event_bevent_t *bev = (php_event_bevent_t *) obj;
 
+	if (!bev->bevent) {
+		return FAILURE;
+	}
+
 	MAKE_STD_ZVAL(*retval);
 
 	/* XXX Is it safe to cache it here? */