On Wed, Jan 5, 2011 at 1:21 AM, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote: > After which we can change your patch thusly: > > --- a/fs/binfmt_misc.c~fs-binfmt_miscc-use-kernels-hex_to_bin-method-fix > +++ a/fs/binfmt_misc.c > @@ -244,9 +244,7 @@ static int unquote(char *from) > >    Âwhile ((c = *s++) != '\0') { >        Âif (c == '\\' && *s == 'x') { > -            s++; > -            *p = hex_to_bin(*s++) << 4; > -            *p++ |= hex_to_bin(*s++); > +            s = (char *)hex2bin(p, s + 1, 1); We need to update both p and s. In case of '\xAA\xBB' you have result -> '0xBB'. Am I wrong? >            Âcontinue; >        Â} >        Â*p++ = c; -- With Best Regards, Andy Shevchenko ÿô.nÇ·®+%˱é¥wÿº{.nÇ·¥{±ýþ)íèjg¬±¨¶Ýjÿ¾«þG«é¸¢·¦j:+v¨wèm¶ÿþø®w¥þ࣢·hâÿÙ