[PATCH v12 1/4] elf: Add la_activity during application exit
Florian Weimer
fweimer@redhat.com
Wed Jan 26 11:42:19 GMT 2022
* Adhemerval Zanella via Libc-alpha:
> +static int
> +do_test (int argc, char *argv[])
> +{
> + /* We must have either:
> + - One our fource parameters left if called initially:
> + + path to ld.so optional
> + + "--library-path" optional
> + + the library path optional
> + + the application name */
> + if (restart)
> + return handle_restart ();
> +
> + char *spargv[9];
> + int i = 0;
> + for (; i < argc - 1; i++)
> + spargv[i] = argv[i + 1];
> + spargv[i++] = (char *) "--direct";
> + spargv[i++] = (char *) "--restart";
> + spargv[i] = NULL;
> + TEST_VERIFY_EXIT (i < array_length (spargv));
Sorry, I think this test is invalid because it happens after the
out-of-bounds write. I expect that compilers will eventually warn about
that.
Thanks,
Florian
More information about the Libc-alpha
mailing list