Quantcast
Channel: lkml.org : Pallipadi, Venkatesh
Viewing all articles
Browse latest Browse all 864

Re: [PATCH] vsprintf: Make "null" pointer dereference more robust

$
0
0
Linus Torvalds writes: (Summary) wrote:

[...]

+ pointer address otherwise
This is still fundamentally completely wrong.
This is still fundamentally completely wrong.
It never prints "pointer address", and if it were to do that, it would be wrong. "strchr(string, 0)" is special, and the Open Group states "strchr(string, 0)" is special, and the Open Group states "The terminating null byte is considered to be part of the string" "The terminating null byte is considered to be part of the string" so a NUL character will *always* return success, which is actually completely wrong for this case, because now it does that whole crazy <efault>

Viewing all articles
Browse latest Browse all 864

Trending Articles