On Wed, Oct 28, 2015 at 10:26:28PM +0000, Xiao Guangrong wrote: > +static void nvdimm_dsm_func_set_label_data(NVDIMMDevice *nvdimm, > + nvdimm_dsm_in *in, GArray *out) > +{ > + NVDIMMClass *nvc = NVDIMM_GET_CLASS(nvdimm); > + nvdimm_func_in_set_label_data *set_label_data = &in->func_set_label_data; > + uint32_t status; > + > + le32_to_cpus(&set_label_data->offset); > + le32_to_cpus(&set_label_data->length); > + > + nvdimm_debug("Write Label Data: offset %#x length %#x.\n", > + set_label_data->offset, set_label_data->length); > + > + if (nvdimm->label_size < set_label_data->offset + set_label_data->length) { Integer overflow.
Attachment:
signature.asc
Description: PGP signature