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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 18 May 2015 19:08:59 +0300
From:	Dan Carpenter <dan.carpenter@...cle.com>
To:	Jagan Teki <jteki@...nedev.com>
Cc:	devel@...verdev.osuosl.org,
	Florian Schilhabel <florian.c.schilhabel@...glemail.com>,
	Larry Finger <Larry.Finger@...inger.net>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: Re: [PATCH v2] staging: rtl8712: Use ether_addr_copy() instead of
 memcpy()


#include <stdio.h>

struct foo {
	unsigned char one;
	unsigned char two;
	unsigned char three;
	unsigned char mac_addr[6];
	unsigned short channel_plan;
};

int main(void)
{
	struct foo *p = NULL;

	printf("%x\n", &p->mac_addr);

	return 0;
}

This program does not print an even number so the alignment is off.

regards,
dan carpenter
--
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