When the wrapper is run with no configuration file specified (e.g., no arguments at all), it defaults to wrapper.conf (or whatever the wrapper executable is called).
But the translation from "wrapper" to "wrapper.conf" allocates one too few bytes (it's adding 5 characters plus a newline).
This resulted in some bizarre behavior on Linux, where paths of a certain length would get random characters appended.
The attached patch fixes this problem in wrapper.c.
Log in to post a comment.