Hi, some hints about your string handling in this code... On Mon, May 12, 2014 at 02:24:21PM +0200, Wadim Egorov wrote: ... > + > + devfilecopy = (char *)malloc(strlen(data->devicefile)); > + if (!devfilecopy) { > + pr_err("could not allocate enough memory: %s\n", errno_str()); > + return errno; > + } > + strcpy(devfilecopy, data->devicefile); possible buffer overflow detected. "strlen" returns length of string excluding of the terminate null byte. Just use xstrdup here. - Alex _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox