MdePkg DevicePathLib: Validate before touch input buffer.