Hi Manuele, On 07/06/2016 12:52 PM, Manuele Conti wrote: > I found a bug in uspace/lib/drv/generic/remote_nic.c and I try to fix it.
We have: uint8_t *data = NULL; if (max_length != 0) { data = malloc(max_length); if (data == NULL) { async_answer_0(callid, ENOMEM); return; } } memset(data, 0, max_length); So if max_length is 0, data will remain NULL, but memset will be called on memset(NULL, 0, 0). Should do no harm since it will be setting 0 bytes, right? Jakub _______________________________________________ HelenOS-devel mailing list HelenOS-devel@lists.modry.cz http://lists.modry.cz/listinfo/helenos-devel