mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
elf: Emit warning if tunable is ill-formatted
So caller knows that the tunable will be ignored. Checked on x86_64-linux-gnu. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
parent
434eca873f
commit
eb9291aaa6
1 changed files with 6 additions and 0 deletions
|
@ -235,6 +235,12 @@ parse_tunables (char *valstring)
|
||||||
{
|
{
|
||||||
struct tunable_toset_t tunables[tunables_list_size];
|
struct tunable_toset_t tunables[tunables_list_size];
|
||||||
int ntunables = parse_tunables_string (valstring, tunables);
|
int ntunables = parse_tunables_string (valstring, tunables);
|
||||||
|
if (ntunables == -1)
|
||||||
|
{
|
||||||
|
_dl_error_printf (
|
||||||
|
"WARNING: ld.so: invalid GLIBC_TUNABLES `%s': ignored.\n", valstring);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (int i = 0; i < ntunables; i++)
|
for (int i = 0; i < ntunables; i++)
|
||||||
tunable_initialize (tunables[i].t, tunables[i].value);
|
tunable_initialize (tunables[i].t, tunables[i].value);
|
||||||
|
|
Loading…
Add table
Reference in a new issue