Memory corruption in core due to buffer copy without check9ing the size of input while processing ioctl queries.