Closed GustavoARSilva closed 1 year ago
drivers/xen/xen-front-pgdir-shbuf.c: 30 struct xen_page_directory { 31 grant_ref_t gref_dir_next_page; 32 #define XEN_GREF_LIST_END 0 33 grant_ref_t gref[1]; /* Variable length */ 34 };
Also, worth noting is that this fake flex-array is currently being used as argument in calls to memcpy():
drivers/xen/xen-front-pgdir-shbuf.c-384- memcpy(&page_dir->gref, &buf->grefs[cur_gref], drivers/xen/xen-front-pgdir-shbuf.c-385- to_copy * sizeof(grant_ref_t));
In mainline now.
Also, worth noting is that this fake flex-array is currently being used as argument in calls to memcpy():