[PATCH app/xinit] Buffer overflow with many arguments.

Tobias Stöckmann tobias at stoeckmann.org
Sat Jan 19 19:37:05 UTC 2019


> hi,
> nice catch.
> 
> instead of letting 98 magicly popup what is about
> sizeof(serverargv)/sizeof(*serverargv) ?
> Dito clientargv,
> 
> re,
>  wh

There is still a pseudo-magical - 2 missing there, to keep space for the
last NULL assignment.

But I'm fine with both. As long as 98 is the result. :)


Tobias


More information about the xorg-devel mailing list