[PATCH 1/7] wpa_supplicant: fix null dereference

Peer, Ilan ilan.peer
Mon Jan 19 01:47:38 PST 2015


True, but as the behavior is not defined in the specification, it really depends on the C library implementation.

Ilan. 

> -----Original Message-----
> From: Johannes Berg [mailto:johannes at sipsolutions.net]
> Sent: Monday, January 19, 2015 11:36
> To: Peer, Ilan
> Cc: hostap at lists.shmoo.com; Eytan Lifshitz
> Subject: Re: [PATCH 1/7] wpa_supplicant: fix null dereference
> 
> On Sun, 2015-01-18 at 20:44 -0500, Ilan Peer wrote:
> > From: Eytan Lifshitz <eytan.lifshitz at intel.com>
> >
> > In ieee802_1x_decapsulate_radius(), eap_server_get_name() may return
> > null, and it will be dereferenced. Changed it to return "??" instead.
> 
> Most libc implemenations will just print "(nil)" though.
> 
> johannes




More information about the Hostap mailing list