|
|
Message-ID: <20170314181409.GA1693@brightrain.aerifal.cx>
Date: Tue, 14 Mar 2017 14:14:09 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] emulate lazy binding
On Mon, Mar 13, 2017 at 07:47:35PM -0400, Rich Felker wrote:
>
> +static void prepare_lazy(struct dso *p)
> +{
> + size_t dyn[DYN_CNT], n, flags1;
> + decode_vec(p->dynv, dyn, DYN_CNT);
> + search_vec(p->dynv, &flags1, DT_FLAGS_1);
> + if (dyn[DT_BIND_NOW] || (dyn[DT_FLAGS] & DF_BIND_NOW) || (flags1 & DF_1_NOW))
> + return;
One fix, flags1 should be initialized to 0 in case search_vec fails.
I'll go ahead and commit soon.
Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.