lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <E1Iki6s-0000g8-N2@be1.lrz>
Date:	Wed, 24 Oct 2007 17:25:30 +0200
From:	Bodo Eggert <7eggert@....de>
To:	Miguel Botón <mboton.lkml@...il.com>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fix "passing argument # of '__memcpy' discards qualifiers from pointer target type" warnings

Miguel Botón <mboton.lkml@...il.com> wrote:

> This patch fixes the warnings "passing argument 1 of '__memcpy' discards
> qualifiers from pointer target type" and "passing argument 2 of '__memcpy'
> discards qualifiers from pointer target type" when compiling some files.
> 
> I don't really know if this is the best way but at least I don't get more
> warnings.

> +++ linux-2.6.24-rc1/fs/cifs/dir.c    2007-10-24 15:49:44.000000000 +0200
> @@ -585,6 +585,7 @@

> +     unsigned char *dstname = (unsigned char *)a->name;

> @@ -593,7 +594,7 @@

> -             memcpy((unsigned char *)a->name, b->name, a->len);
> +             memcpy(dstname, b->name, a->len);

This looks like a compiler bug. Get the gcc people to fix it.
-- 
Top 100 things you don't want the sysadmin to say:
20. ...and if we just swap these two disc controllers like _this_...

Friß, Spammer: wd@....7eggert.dyndns.org esmpv@....7eggert.dyndns.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ