Re: [PATCH] modechange: avoid memory leaks for invalid octal modes

2014-03-25 Thread Paul Eggert
Thanks, I pushed that.

[PATCH] modechange: avoid memory leaks for invalid octal modes

2014-03-25 Thread Bernhard Voelker
* lib/modechange.c (mode_compile): During the parsing of notations like +40, free the 'mc' buffer for invalid mode strings like +1 (greater than the maximum octal mode), =18 (bad octal mode characters) or u=1 ('affected' with octal modes). Reproducer, e.g.: $ valgrind --leak-check=full chm